Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use commit hash for wbaas-deploy commit #473

Merged
merged 4 commits into from
Feb 13, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/docker.build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
if: github.event_name != 'pull_request'
id: update-values
run: |
TAG="$GITHUB_REF_NAME"
TAG="$(echo ${{ steps.docker_meta.outputs.tags }} | cut -d':' -f2)"
echo "tag=$TAG" >> $GITHUB_OUTPUT
sed -i "/image:/{n;s/tag:.*/tag: $TAG/;}" ./repos/wbaas-deploy-staging/k8s/helmfile/env/local/mediawiki-139.values.yaml.gotmpl
sed -i "/image:/{n;s/tag:.*/tag: $TAG/;}" ./repos/wbaas-deploy-staging/k8s/helmfile/env/staging/mediawiki-139.values.yaml.gotmpl
Expand All @@ -84,15 +84,15 @@ jobs:
if: github.event_name != 'pull_request'
id: truncate-commit-message
run: |
MSG=$(echo "${{ github.event.head_commit.message }}" | head -n 1)
MSG=$(git log -1 --pretty=format:%s)
echo "msg=$MSG" >> $GITHUB_OUTPUT
-
uses: peter-evans/create-pull-request@v4
if: github.event_name != 'pull_request'
with:
path: ./repos/wbaas-deploy-staging
commit-message: 'Staging+Local: Deploy new MediaWiki image ${{ steps.update-values.outputs.tag }}'
title: 'Staging+Local: Deploy new MediaWiki image ${{ steps.update-values.outputs.tag }}'
commit-message: 'Staging+Local: Deploy new MediaWiki image ${{ steps.docker_meta.outputs.tags }}'
title: 'Staging+Local: Deploy new MediaWiki image ${{ steps.docker_meta.outputs.tags }}'
branch: deploy-to-staging-${{ steps.update-values.outputs.tag }}
committer: wmdebot <[email protected]>
author: wmdebot <[email protected]>
Expand All @@ -107,8 +107,8 @@ jobs:
if: github.event_name != 'pull_request'
with:
path: ./repos/wbaas-deploy-production
commit-message: 'Production: Deploy new MediaWiki image ${{ steps.update-values.outputs.tag }}'
title: 'Production: Deploy new MediaWiki image ${{ steps.update-values.outputs.tag }}'
commit-message: 'Production: Deploy new MediaWiki image ${{ steps.docker_meta.outputs.tags }}'
title: 'Production: Deploy new MediaWiki image ${{ steps.docker_meta.outputs.tags }}'
branch: deploy-to-production-${{ steps.update-values.outputs.tag }}
committer: wmdebot <[email protected]>
author: wmdebot <[email protected]>
Expand Down
Loading