ci/woodpecker/push/build-dane-verify Pipeline was successful
ci/woodpecker/push/build-hledger Pipeline was successful
ci/woodpecker/push/build-nvim Pipeline was successful
ci/woodpecker/push/build-playwright Pipeline was successful
ci/woodpecker/push/build-ssh Pipeline was successful
ci/woodpecker/push/build-wg-verify Pipeline was successful
ci/woodpecker/push/build-yq Pipeline was successful
ci/woodpecker/tag/build-hledger Pipeline was successful
77 lines
1.9 KiB
YAML
77 lines
1.9 KiB
YAML
workspace:
|
|
base: /workspace
|
|
path: app
|
|
|
|
when:
|
|
- event: push
|
|
branch: main
|
|
path:
|
|
include: [".woodpecker/build-ssh.yml", "ssh/**"]
|
|
- event: tag
|
|
ref: "refs/tags/ssh/v*.*.*"
|
|
|
|
steps:
|
|
extract-semver-tags:
|
|
image: alpine/git:v2.45.2
|
|
commands:
|
|
- |
|
|
VERSION_FULL="${CI_COMMIT_TAG#ssh/v}"
|
|
VERSION_MAJOR=$(echo "$VERSION_FULL" | cut -d. -f1)
|
|
VERSION_MINOR=$(echo "$VERSION_FULL" | cut -d. -f2)
|
|
|
|
SEMVER_FULL="$VERSION_FULL"
|
|
SEMVER_MAJOR_MINOR="$VERSION_MAJOR.$VERSION_MINOR"
|
|
SEMVER_MAJOR="$VERSION_MAJOR"
|
|
|
|
echo "Extracted versions: $SEMVER_FULL, $SEMVER_MAJOR_MINOR, $SEMVER_MAJOR"
|
|
echo -e "$SEMVER_FULL\n$SEMVER_MAJOR\n$SEMVER_MAJOR_MINOR" > .tags
|
|
when:
|
|
- event: tag
|
|
|
|
build-docker-main:
|
|
image: woodpeckerci/plugin-docker-buildx:6.0.3
|
|
settings:
|
|
repo: git.eleith.com/eleith.private/ssh
|
|
username: eleith
|
|
dockerfile: ssh/Dockerfile
|
|
context: ssh
|
|
registry: https://git.eleith.com
|
|
password:
|
|
from_secret: gitea_docker_registry
|
|
tags: latest
|
|
when:
|
|
- event: push
|
|
branch: main
|
|
|
|
build-docker-tag:
|
|
image: woodpeckerci/plugin-docker-buildx:6.0.3
|
|
settings:
|
|
repo: git.eleith.com/eleith.private/ssh
|
|
username: eleith
|
|
dockerfile: ssh/Dockerfile
|
|
context: ssh
|
|
registry: https://git.eleith.com
|
|
password:
|
|
from_secret: gitea_docker_registry
|
|
tags_file: .tags
|
|
when:
|
|
- event: tag
|
|
|
|
notify:
|
|
image: deblan/woodpecker-email:3.3.0
|
|
settings:
|
|
dsn:
|
|
from_secret: woodpecker_email_dsn
|
|
from:
|
|
address:
|
|
from_secret: woodpecker_email_from_address
|
|
name:
|
|
from_secret: woodpecker_email_from_name
|
|
recipients:
|
|
from_secret: woodpecker_email_recipient
|
|
recipients_only: true
|
|
when:
|
|
- event: push
|
|
branch: main
|
|
status: [failure, success]
|