Skip to content
This repository was archived by the owner on Apr 13, 2026. It is now read-only.

Commit dde347c

Browse files
authored
Merge pull request #8 from initstring/update-actions
feat: Clarify GH Actions
2 parents 401cd7b + 1fe07b6 commit dde347c

3 files changed

Lines changed: 26 additions & 24 deletions

File tree

.github/workflows/ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
push:
55
branches: [ main ]
66
pull_request:
7-
branches: [ main ]
87

98
jobs:
109
build-and-test:

.github/workflows/docker-pr.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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
Lines changed: 4 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,15 @@
1-
name: Build and Push Docker Image
1+
name: Publish Docker Image
22

33
on:
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

1210
jobs:
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
@@ -55,7 +36,7 @@ jobs:
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: .

0 commit comments

Comments
 (0)