Skip to content

Commit 4e36d05

Browse files
authored
Merge pull request #3054 from metacpan/haarg/update-k8s
update image in k8s deployment on push
2 parents a32fd8f + 6298ff7 commit 4e36d05

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/build-production-container.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,15 @@ jobs:
1010
runs-on: ubuntu-22.04
1111
name: Docker Push
1212
steps:
13+
- name: Generate Auth Token
14+
id: auth-token
15+
uses: jamestrousdale/github-app-jwt-token@0.1.4
16+
with:
17+
app-id: ${{ secrets.APP_ID }}
18+
private-key: ${{ secrets.APP_PRIVATE_KEY }}
1319
- uses: actions/checkout@v4
20+
with:
21+
token: ${{ steps.auth-token.outputs.access-token }}
1422
- name: Log in to Docker Hub
1523
uses: docker/login-action@v3
1624
with:
@@ -29,3 +37,10 @@ jobs:
2937
with:
3038
push: true
3139
tags: metacpan/metacpan-web:latest,metacpan/metacpan-web:${{ github.sha }}
40+
- name: Update deployed image
41+
uses: aurelien-baudet/workflow-dispatch@v2
42+
with:
43+
repo: metacpan/metacpan-k8s
44+
workflow: set-image.yml
45+
token: ${{ steps.auth-token.outputs.access-token }}
46+
inputs: '{ "app": "web", "environment": "prod", "repository": "metacpan/metacpan-web", "tag": "${{ github.sha }}" }'

0 commit comments

Comments
 (0)