Skip to content

Commit 9b69782

Browse files
Automatically update k8s config in deploy
1 parent 55f583c commit 9b69782

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/deploy.yml

+18
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,21 @@ jobs:
2828
export TAG=$(echo $GITHUB_SHA | cut -c1-7)
2929
docker build -t ${{ secrets.PRIVATE_REGISTRY_URL }}/heppa:$TAG .
3030
docker push ${{ secrets.PRIVATE_REGISTRY_URL }}/heppa:$TAG
31+
32+
release:
33+
name: Deploy a new release
34+
runs-on: ubuntu-latest
35+
36+
if: ${{ github.event_name == 'release' }}
37+
38+
needs: [build]
39+
40+
steps:
41+
- name: Trigger deployment
42+
uses: aurelien-baudet/workflow-dispatch@v2
43+
with:
44+
token: ${{ secrets.DEPLOYMENT_PAT }}
45+
workflow: Bump Service
46+
inputs: '{"service": "heppa", "tag": "${{ github.event.release.tag_name }}"}'
47+
repo: TKOaly/tko-aly-k8s-configs
48+
ref: main

0 commit comments

Comments
 (0)