Skip to content

Commit

Permalink
Updating Docker Image Tags for Helm Release Process (#2034)
Browse files Browse the repository at this point in the history
* adding image update workflow

* attempting to see if this works

* changing order

* more updates

* push

* updating to use secret for manifests

* trying different token

* moving around

* updating

* adding dummy file

* trying a new approach

* new approach

* update name

* adding back

* fixing formatting

* removing ref

* adding back workflow dispatch

* updating name

* getting itv to show up

* still broken?

* trhying this more like the other one

* trying a different key

* trying this again

* adding base checkout

* trying to remove rthis

* one last stab at this

* removing pasth

* trying this thing

* breakthrough!

* fixing path

* adjusting branch protection

* attempting to add the permission

* trying the other way

* trying it exasctly like the other one

* outputting the file to see if it does the update properly

* updating var

* updating sha

* fixing sha

* fixing sha

* fixing sha

* fixing sha

* updating repo

* adjusting repo

* adjusting branch protection

* trying a different way

* renaming file

* udpating sha

* formatting

* formatting

* TRYINg veriable

* fixing docker tag

* fixing gtrigger

* push

* finally fixing docker tag

* final adjustments

* updating to be able to run manually

* fixing component

* removing the var for component
  • Loading branch information
P0NDER0SA authored Jan 9, 2025
1 parent 431c869 commit 23a155b
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/call-manifests-update-docker-tag.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Call Manifests Update Docker Tag

on:
workflow_dispatch:
push:
branches:
- main

jobs:
update-docker-tag-in-manifests:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set Docker Tag
run: echo "DOCKER_TAG=${GITHUB_SHA::7}" >> $GITHUB_ENV
env:
GITHUB_SHA: ${{ github.sha }}

- name: Trigger repository_dispatch
run: |
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.MANIFESTS_WORKFLOW_TOKEN }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/cds-snc/notification-manifests/dispatches \
-d '{"event_type":"update-docker-image","client_payload":{"component":"ADMIN","docker_tag":"${{ env.DOCKER_TAG }}"}}'

0 comments on commit 23a155b

Please sign in to comment.