This repository was archived by the owner on Apr 13, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 push :
55 branches : [ main ]
66 pull_request :
7- branches : [ main ]
87
98jobs :
109 build-and-test :
Original file line number Diff line number Diff line change 1+ name : Validate Docker Build
2+
3+ on :
4+ pull_request :
5+
6+ jobs :
7+ validate-docker-build :
8+ name : Build Docker Image (no push)
9+ runs-on : ubuntu-latest
10+ steps :
11+ - name : Checkout
12+ uses : actions/checkout@v4
13+
14+ - name : Set up Docker Buildx
15+ uses : docker/setup-buildx-action@v3
16+
17+ - name : Build image
18+ uses : docker/build-push-action@v6
19+ with :
20+ context : .
21+ file : deploy/docker/Dockerfile
22+ push : false
Original file line number Diff line number Diff line change 1- name : Build and Push Docker Image
1+ name : Publish Docker Image
22
33on :
4- pull_request :
5- branches : [ main ]
64 release :
75 # Publishing a release for an existing tag (via the GitHub UI) does not
86 # emit a push event, so include this trigger to build the image when a
97 # release goes live.
108 types : [ published ]
119
1210jobs :
13- docker-build-pr :
14- if : github.event_name == 'pull_request'
15- runs-on : ubuntu-latest
16- steps :
17- - name : Checkout
18- uses : actions/checkout@v4
19-
20- - name : Set up Docker Buildx
21- uses : docker/setup-buildx-action@v3
22-
23- - name : Build image (no push)
24- uses : docker/build-push-action@v6
25- with :
26- context : .
27- file : deploy/docker/Dockerfile
28- push : false
29-
30- docker :
31- if : github.event_name == 'release'
11+ publish :
12+ name : Publish Docker Image to GHCR
3213 runs-on : ubuntu-latest
3314 permissions :
3415 contents : read
5536 tags : |
5637 type=ref,event=tag
5738
58- - name : Build and push
39+ - name : Build and push image
5940 uses : docker/build-push-action@v6
6041 with :
6142 context : .
You can’t perform that action at this time.
0 commit comments