2024-11-28 10:58:12 +01:00
|
|
|
when:
|
|
|
|
- event: tag
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: push-image
|
|
|
|
image: eclipse-temurin:21-jdk-alpine
|
|
|
|
environment:
|
|
|
|
REGISTRY_USERNAME:
|
|
|
|
from_secret: registry_username
|
|
|
|
REGISTRY_PASSWORD:
|
|
|
|
from_secret: registry_password
|
2024-11-28 14:08:57 +01:00
|
|
|
REGISTRY_URL:
|
|
|
|
from_secret: registry_url
|
2024-11-28 10:58:12 +01:00
|
|
|
commands:
|
2024-11-28 14:03:15 +01:00
|
|
|
- ./mvnw clean install -Dquarkus.container-image.push=true -Dquarkus.container-image.image=$${REGISTRY_URL}/ddnsclient/ddnsclient -Dquarkus.container-image.additional-tags=v1.0.0 -Dquarkus.container-image.username=$${REGISTRY_USERNAME} -Dquarkus.container-image.password=$${REGISTRY_PASSWORD}
|
2024-11-28 10:58:12 +01:00
|
|
|
|
|
|
|
- name: notify
|
|
|
|
image: deblan/woodpecker-email
|
|
|
|
settings:
|
|
|
|
debug: true
|
|
|
|
dsn:
|
|
|
|
from_secret: smtp_url
|
|
|
|
from:
|
|
|
|
address:
|
|
|
|
from_secret: email_sender
|
|
|
|
name: "Woodpecker CI"
|
|
|
|
recipients_only: true
|
|
|
|
recipients:
|
|
|
|
from_secret: email_recipient
|
|
|
|
when:
|
|
|
|
status:
|
|
|
|
- failure
|