Skip to content

Commit 6730c24

Browse files
authored
ci: build base image on PRs (#13409)
1 parent 5aea803 commit 6730c24

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/docker-base.yaml

+6-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
- scripts/Dockerfile.base
99
- scripts/Dockerfile
1010

11+
pull_request:
12+
paths:
13+
- scripts/Dockerfile.base
14+
1115
schedule:
1216
# Run every week at 09:43 on Monday, Wednesday and Friday. We build this
1317
# frequently to ensure that packages are up-to-date.
@@ -57,11 +61,12 @@ jobs:
5761
platforms: linux/amd64,linux/arm64,linux/arm/v7
5862
pull: true
5963
no-cache: true
60-
push: true
64+
push: github.event_name != 'pull_request'
6165
tags: |
6266
ghcr.io/coder/coder-base:latest
6367
6468
- name: Verify that images are pushed properly
69+
if: github.event_name != 'pull_request'
6570
run: |
6671
# retry 10 times with a 5 second delay as the images may not be
6772
# available immediately

0 commit comments

Comments
 (0)