-
Notifications
You must be signed in to change notification settings - Fork 270
38 lines (36 loc) · 956 Bytes
/
baseimages.yaml
File metadata and controls
38 lines (36 loc) · 956 Bytes
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
name: 'Docker Base Images'
on:
workflow_dispatch:
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
merge_group:
types:
- checks_requested
permissions:
contents: read
jobs:
render:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
with:
go-version-file: go.mod
- name: go env
run: |
echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV
- name: Render Dockerfiles
run: make dockerfiles
- name: Fail if base images are outdated
run: |
if [ -n "$(git status --porcelain)" ]; then
echo "Changes detected. Please run 'make dockerfiles' locally to update the base images."
exit 1
fi