replace create-pr image with own randomizer image
All checks were successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/deploy Pipeline was successful

This commit is contained in:
Tom Neuber 2024-10-09 13:34:12 +02:00
parent 41ff3a3e98
commit c8834a8632
Signed by: tom
GPG key ID: F17EFE4272D89FF6

View file

@ -1,7 +1,4 @@
skip_clone: true skip_clone: true
variables:
- &test
PR_BODY_MESSAGE: lol
steps: steps:
- name: bump tag in deployment-repo (prod) - name: bump tag in deployment-repo (prod)
image: git.ar21.de/aaron/kustomize-ci image: git.ar21.de/aaron/kustomize-ci
@ -51,25 +48,10 @@ steps:
- branch: - branch:
exclude: master exclude: master
event: push event: push
- name: generate random pull request message - name: create pull request (prod)
image: git.ar21.de/tom/push-message-randomizer:latest image: git.ar21.de/tom/push-message-randomizer:latest
pull: true pull: true
environment:
<<: *test
commands:
- /entrypoint.sh
- echo "${PR_BODY_MESSAGE}"
- PR_BODY_MESSAGE="$(cat message.txt)"
- echo "${PR_BODY_MESSAGE}"
when:
- event: push
- name: create pull request (prod)
image: johnwalkerx/gitea-pull-request-create-plugin:latest
pull: true
#commands:
# - PLUGIN_PR_BODY_MESSAGE="$(cat message.txt)"
settings: settings:
pr_body_message: ""
gitea_address: https://git.ar21.de gitea_address: https://git.ar21.de
gitea_token: gitea_token:
from_secret: FORGEJO_API from_secret: FORGEJO_API
@ -81,7 +63,7 @@ steps:
pr_body: | pr_body: |
### Dashboard image update ### Dashboard image update
$${PLUGIN_PR_BODY_MESSAGE} {- random-pr-message -}
### Configuration ### Configuration
@ -97,10 +79,9 @@ steps:
- branch: master - branch: master
event: push event: push
- name: create pull request (staging) - name: create pull request (staging)
image: johnwalkerx/gitea-pull-request-create-plugin:latest image: git.ar21.de/tom/push-message-randomizer:latest
pull: true pull: true
settings: settings:
<<: *test
gitea_address: https://git.ar21.de gitea_address: https://git.ar21.de
gitea_token: gitea_token:
from_secret: FORGEJO_API from_secret: FORGEJO_API
@ -112,8 +93,7 @@ steps:
pr_body: | pr_body: |
### Dashboard image update ### Dashboard image update
${PLUGIN_PR_BODY_MESSAGE} {- random-pr-message -}
${PR_BODY_MESSAGE}
### Configuration ### Configuration