test 2
This commit is contained in:
parent
4a4d5d9d55
commit
41ff3a3e98
1 changed files with 27 additions and 20 deletions
|
@ -1,4 +1,7 @@
|
|||
skip_clone: true
|
||||
variables:
|
||||
- &test
|
||||
PR_BODY_MESSAGE: lol
|
||||
steps:
|
||||
- name: bump tag in deployment-repo (prod)
|
||||
image: git.ar21.de/aaron/kustomize-ci
|
||||
|
@ -51,6 +54,13 @@ steps:
|
|||
- name: generate random pull request message
|
||||
image: git.ar21.de/tom/push-message-randomizer:latest
|
||||
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)
|
||||
|
@ -89,35 +99,32 @@ steps:
|
|||
- name: create pull request (staging)
|
||||
image: johnwalkerx/gitea-pull-request-create-plugin:latest
|
||||
pull: true
|
||||
commands:
|
||||
- ls -l
|
||||
- PLUGIN_PR_BODY_MESSAGE="$(cat message.txt)"
|
||||
- /gitea-pull-request-create-plugin
|
||||
environment:
|
||||
PLUGIN_PR_BODY_MESSAGE: ""
|
||||
PLUGIN_GITEA_ADDRESS: https://git.ar21.de
|
||||
PLUGIN_GITEA_TOKEN:
|
||||
settings:
|
||||
<<: *test
|
||||
gitea_address: https://git.ar21.de
|
||||
gitea_token:
|
||||
from_secret: FORGEJO_API
|
||||
PLUGIN_OWNER: ${CI_REPO_OWNER}
|
||||
PLUGIN_REPO: core-deployments
|
||||
PLUGIN_BRANCH: "${CI_PIPELINE_NUMBER}_dashboard_staging"
|
||||
PLUGIN_BASE_BRANCH: main
|
||||
PLUGIN_PR_TITLE: "DASHBOARD STAGING: update image tag to ${CI_PIPELINE_NUMBER}"
|
||||
PLUGIN_PR_BODY: |
|
||||
owner: ${CI_REPO_OWNER}
|
||||
repo: core-deployments
|
||||
branch: "${CI_PIPELINE_NUMBER}_dashboard_staging"
|
||||
base_branch: main
|
||||
pr_title: "DASHBOARD STAGING: update image tag to ${CI_PIPELINE_NUMBER}"
|
||||
pr_body: |
|
||||
### ℹ Dashboard image update
|
||||
|
||||
$${PLUGIN_PR_BODY_MESSAGE}
|
||||
${PLUGIN_PR_BODY_MESSAGE}
|
||||
${PR_BODY_MESSAGE}
|
||||
|
||||
### Configuration
|
||||
|
||||
📅 **Schedule**: Branch creation - At any time, Automerge - At any time.
|
||||
|
||||
🚦 **Automerge**: Enabled.
|
||||
PLUGIN_SKIP_ON_MISSING_BRANCH: true
|
||||
PLUGIN_CLOSE_PR_IF_EMPTY: true
|
||||
PLUGIN_DELETE_BRANCH_IF_PR_EMPTY: true
|
||||
PLUGIN_MERGE_WHEN_CHECKS_SUCCEED: true
|
||||
PLUGIN_DELETE_BRANCH_AFTER_MERGE: true
|
||||
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:
|
||||
exclude: master
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue