generated from digitalservicebund/java-application-template
-
Notifications
You must be signed in to change notification settings - Fork 9
40 lines (36 loc) · 1.07 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 0 * * *" # Every day at 8am
# 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/github-actions/bump-chainguard-digest@961e1cd525f8af56785a024bafc2b3b6a2f7449a
with:
image_name: nginx
file_path: frontend/Dockerfile.prod
github_token: ${{ github.token }}
- name: bump redis image
uses: digitalservicebund/github-actions/bump-chainguard-digest@961e1cd525f8af56785a024bafc2b3b6a2f7449a
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 }}