openproject/.woodpecker/.deploy.yaml
Aaron Riedel 6fa4e551d2
Some checks failed
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/build Pipeline failed
ci/woodpecker/push/test unknown status
ci/woodpecker/push/deploy unknown status
fix deployment CI
2024-11-05 21:24:51 +01:00

59 lines
1.6 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

skip_clone: true
steps:
- name: bump tag in deployment-repo
image: git.ar21.de/aaron/debian-ci
commands:
- git clone https://git.ar21.de/aaron/k8s-deployments.git deployment-repo
- cd deployment-repo/openproject
- yq -iy '.image.tag = "${CI_PIPELINE_NUMBER}"' values.yaml
when:
- branch: main
event: push
- name: push new tag to deployment-repo
image: appleboy/drone-git-push
settings:
branch: "${CI_PIPELINE_NUMBER}_openproject_prod"
remote: ssh://git@git.ar21.de:2222/aaron/k8s-deployments.git
path: deployment-repo
force: false
commit: true
commit_message: "openproject: update image tag to ${CI_PIPELINE_NUMBER} (done automagically via Woodpecker pipeline)"
ssh_key:
from_secret: FORGEJO_SSH_KEY
when:
- branch: main
event: push
- name: create pull request
image: git.ar21.de/tom/push-message-randomizer:latest
pull: true
settings:
gitea_address: https://git.ar21.de
gitea_token:
from_secret: FORGEJO_API
owner: ${CI_REPO_OWNER}
repo: k8s-deployments
branch: "${CI_PIPELINE_NUMBER}_openproject_prod"
base_branch: main
pr_title: "OPENPROJECT: update image tag to ${CI_PIPELINE_NUMBER}"
pr_body: |
### openproject image update
{- random-pr-message -}
### Configuration
📅 **Schedule**: Branch creation - At any time, Automerge - At any time.
🚦 **Automerge**: Enabled.
skip_on_missing_branch: true
close_pr_if_empty: true
delete_branch_if_pr_empty: true
merge_when_checks_succeed: true
delete_branch_after_merge: true
when:
- branch: main
event: push
depends_on:
- lint
- build
- test