Skip to content

Commit 20e30b7

Browse files
authored
Build docker image on PRs (#36)
1 parent 7670217 commit 20e30b7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/build-and-publish-docker-image.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ on:
44
push:
55
branches:
66
- "main"
7-
paths:
7+
paths: &paths
88
- "docker/*"
99
- ".github/workflows/build-and-publish-docker-image.yml"
10+
pull_request:
11+
paths: *paths
1012

1113

1214
permissions:
@@ -53,6 +55,8 @@ jobs:
5355
REPO_DIR: "/srv/repo"
5456
# Fix man pages that are disabled by Ubuntu 18 minimal base image
5557
# APPENDIX_FILE: "appendix"
58+
# Skip pushing for PRs:
59+
NO_PUSH: "${{ github.event_name == 'pull_request' }}"
5660

5761
# Lets us monitor disks getting full as images get bigger over time
5862
- name: "Show how much disk space is left"

0 commit comments

Comments
 (0)