generated from digitalservicebund/java-application-template
-
Notifications
You must be signed in to change notification settings - Fork 9
40 lines (36 loc) · 1.04 KB
/
bump_images.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Bump images
on:
schedule:
- cron: "0 6 * * *"
# Allow to run this workflow manually
workflow_dispatch:
permissions:
contents: write
jobs:
bump-chainguard-images:
runs-on: ubuntu-latest
steps:
- name: bump nginx image
uses: digitalservicebund/bump-chainguard-digest@da9b2679ad3b4fadc7fc9490c05d7c08cab59a60 # v1.0.0
with:
image_name: nginx
file_path: frontend/Dockerfile.prod
github_token: ${{ github.token }}
- name: bump redis image
uses: digitalservicebund/bump-chainguard-digest@da9b2679ad3b4fadc7fc9490c05d7c08cab59a60 # v1.0.0
with:
image_name: redis
file_path: compose.yaml
github_token: ${{ github.token }}
trigger-pipeline:
needs: bump-chainguard-images
runs-on: ubuntu-latest
permissions:
actions: write
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- run: gh workflow run pipeline.yml
env:
GH_TOKEN: ${{ github.token }}