2024-11-21 11:49:50 +01:00
|
|
|
when:
|
|
|
|
- event: tag
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: push-image
|
|
|
|
image: eclipse-temurin:17-jdk-alpine
|
|
|
|
environment:
|
|
|
|
REGISTRY_USERNAME:
|
|
|
|
from_secret: registry_username
|
|
|
|
REGISTRY_PASSWORD:
|
|
|
|
from_secret: registry_password
|
2024-11-22 09:03:09 +01:00
|
|
|
REGISTRY_URL:
|
|
|
|
from_secret: registry_url
|
2024-11-21 11:49:50 +01:00
|
|
|
commands:
|
2024-11-22 09:03:09 +01:00
|
|
|
- ./gradlew jib -Papp.version=${CI_COMMIT_TAG} -Pdocker.repo.username=$${REGISTRY_USERNAME} -Pdocker.repo.password=$${REGISTRY_PASSWORD} -Pregistry.fqdn=$${REGISTRY_URL}
|
2024-11-21 11:49:50 +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
|