2024-11-05 21:07:30 +01:00
|
|
|
|
skip_clone: true
|
2024-11-05 21:43:49 +01:00
|
|
|
|
labels:
|
|
|
|
|
backend: docker
|
2024-11-05 21:07:30 +01:00
|
|
|
|
steps:
|
2024-11-05 21:24:51 +01:00
|
|
|
|
- name: bump tag in deployment-repo
|
|
|
|
|
image: git.ar21.de/aaron/debian-ci
|
2024-11-05 21:07:30 +01:00
|
|
|
|
commands:
|
2024-11-05 21:24:51 +01:00
|
|
|
|
- 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
|
2024-11-05 21:07:30 +01:00
|
|
|
|
when:
|
|
|
|
|
- branch: main
|
|
|
|
|
event: push
|
2024-11-05 21:24:51 +01:00
|
|
|
|
- name: push new tag to deployment-repo
|
2024-11-05 21:07:30 +01:00
|
|
|
|
image: appleboy/drone-git-push
|
|
|
|
|
settings:
|
2024-11-05 21:24:51 +01:00
|
|
|
|
branch: "${CI_PIPELINE_NUMBER}_openproject_prod"
|
|
|
|
|
remote: ssh://git@git.ar21.de:2222/aaron/k8s-deployments.git
|
2024-11-05 21:07:30 +01:00
|
|
|
|
path: deployment-repo
|
|
|
|
|
force: false
|
|
|
|
|
commit: true
|
2024-11-05 21:24:51 +01:00
|
|
|
|
commit_message: "openproject: update image tag to ${CI_PIPELINE_NUMBER} (done automagically via Woodpecker pipeline)"
|
2024-11-05 21:07:30 +01:00
|
|
|
|
ssh_key:
|
|
|
|
|
from_secret: FORGEJO_SSH_KEY
|
|
|
|
|
when:
|
|
|
|
|
- branch: main
|
|
|
|
|
event: push
|
2024-11-05 21:24:51 +01:00
|
|
|
|
- name: create pull request
|
2024-11-05 21:07:30 +01:00
|
|
|
|
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}
|
2024-11-05 21:24:51 +01:00
|
|
|
|
repo: k8s-deployments
|
|
|
|
|
branch: "${CI_PIPELINE_NUMBER}_openproject_prod"
|
2024-11-05 21:07:30 +01:00
|
|
|
|
base_branch: main
|
2024-11-05 21:24:51 +01:00
|
|
|
|
pr_title: "OPENPROJECT: update image tag to ${CI_PIPELINE_NUMBER}"
|
2024-11-05 21:07:30 +01:00
|
|
|
|
pr_body: |
|
2024-11-05 21:24:51 +01:00
|
|
|
|
### ℹ openproject image update
|
2024-11-05 21:07:30 +01:00
|
|
|
|
|
|
|
|
|
{- 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
|