Skip to content

Commit

Permalink
Re-generate pipeline from latest templates
Browse files Browse the repository at this point in the history
  • Loading branch information
bgandon committed May 11, 2024
1 parent 5d8ecb7 commit 39ec061
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 11 deletions.
26 changes: 17 additions & 9 deletions ci/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ meta:
repo: (( param "Please specify the name of the Github repository" ))
branch: master
pr_base_branch: (( grab meta.github.branch ))
release_branch: (( grab meta.github.branch ))
private_key: (( param "Please generate an SSH Deployment Key for this repo and specify it here" ))
access_token: (( param "Please generate a Personal Access Token and specify it here" ))

Expand All @@ -59,8 +60,8 @@ meta:
fail_moji: ":airplane_arriving:"
upset_moji: ":sadpanda:"
pipeline_url: (( concat meta.url "/teams/${BUILD_TEAM_NAME}/pipelines/${BUILD_PIPELINE_NAME}" ))
fail_link: (( concat "<" meta.slack.pipeline_url "/jobs/${BUILD_JOB_NAME}/builds/${BUILD_NAME}| Concourse Failure! " meta.slack.upset_moji ">" ))
fail_text: '(( concat meta.slack.fail_link " " meta.pipeline ": `${BUILD_JOB_NAME}` job failed" ))'
fail_link: (( concat "<" meta.slack.pipeline_url "/jobs/${BUILD_JOB_NAME}/builds/${BUILD_NAME}| Let's go fix it!>" ))
fail_text: '(( concat meta.pipeline ": `${BUILD_JOB_NAME}` job has failed " meta.slack.upset_moji " " meta.slack.fail_link " :hammer_and_wrench:" ))'

groups:
- name: (( grab meta.name ))
Expand Down Expand Up @@ -101,6 +102,7 @@ jobs:

on_failure:
put: notify
no_get: true
params:
channel: (( grab meta.slack.channel ))
username: (( grab meta.slack.username ))
Expand Down Expand Up @@ -169,6 +171,7 @@ jobs:

on_success:
put: notify
no_get: true
params:
channel: (( grab meta.slack.channel ))
username: (( grab meta.slack.username ))
Expand Down Expand Up @@ -212,6 +215,7 @@ jobs:
params: { file: version/number }
on_failure:
put: notify
no_get: true
params:
channel: (( grab meta.slack.channel ))
username: (( grab meta.slack.username ))
Expand All @@ -226,6 +230,7 @@ jobs:
- { put: version, params: { file: version/number } }
on_failure:
put: notify
no_get: true
params:
channel: (( grab meta.slack.channel ))
username: (( grab meta.slack.username ))
Expand All @@ -240,6 +245,7 @@ jobs:
- { put: version, params: { file: version/number } }
on_failure:
put: notify
no_get: true
params:
channel: (( grab meta.slack.channel ))
username: (( grab meta.slack.username ))
Expand Down Expand Up @@ -271,13 +277,14 @@ jobs:
path: ./git/ci/scripts/release
args: []
params:
REPO_ROOT: git
RELEASE_ROOT: gh
RELEASE_NAME: (( grab meta.release ))
REPO_OUT: pushme/git
VERSION_FROM: version/number
GIT_EMAIL: (( grab meta.git.email ))
GIT_NAME: (( grab meta.git.name ))
REPO_ROOT: git
RELEASE_ROOT: gh
RELEASE_NAME: (( grab meta.release ))
REPO_OUT: pushme/git
VERSION_FROM: version/number
GIT_EMAIL: (( grab meta.git.email ))
GIT_NAME: (( grab meta.git.name ))
RELEASE_BRANCH: (( grab meta.github.release_branch ))

- load_var: version
file: version/number
Expand Down Expand Up @@ -315,6 +322,7 @@ jobs:
body: gh/notes.md
on_failure:
put: notify
no_get: true
params:
channel: (( grab meta.slack.channel ))
username: (( grab meta.slack.username ))
Expand Down
7 changes: 6 additions & 1 deletion ci/scripts/release
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,13 @@

set -eu

: ${REPO_ROOT:?required}
: ${RELEASE_ROOT:?required}
: ${RELEASE_NAME:?required}
: ${GIT_EMAIL:?required}
: ${GIT_NAME:?required}
RELEASE_BRANCH=${RELEASE_BRANCH:-"master"}
: ${REPO_OUT:?required}

if [[ ! -f ${REPO_ROOT}/ci/release_notes.md ]]; then
echo >&2 "ci/release_notes.md not found. Did you forget to write them?"
Expand Down Expand Up @@ -46,7 +51,7 @@ if [[ -z $(git config --global user.name) ]]; then
fi

(cd ${REPO_ROOT}
git merge --no-edit master
git merge --no-edit "${RELEASE_BRANCH}"
git add -A
git status
git commit -m "release v${VERSION} [skip ci]")
Expand Down
3 changes: 2 additions & 1 deletion ci/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ jobs:
on_failure:
put: notify
no_get: true
params:
channel: (( grab meta.slack.channel ))
username: (( grab meta.slack.username ))
Expand Down Expand Up @@ -154,7 +155,7 @@ jobs:
type: registry-image
source:
repository: ${DOCKERHUB_REPOSITORY}
tag: "$(< version/number)"
tag: "$(< version/number)"
\`\`\`
EOF
params:
Expand Down

0 comments on commit 39ec061

Please sign in to comment.