From 6730c24c58b226f12196f9ba0059bc9c08455aa0 Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Thu, 30 May 2024 11:35:37 +0300 Subject: [PATCH] ci: build base image on PRs (#13409) --- .github/workflows/docker-base.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker-base.yaml b/.github/workflows/docker-base.yaml index c88bea3ef1..a2845a4fdb 100644 --- a/.github/workflows/docker-base.yaml +++ b/.github/workflows/docker-base.yaml @@ -8,6 +8,10 @@ on: - scripts/Dockerfile.base - scripts/Dockerfile + pull_request: + paths: + - scripts/Dockerfile.base + schedule: # Run every week at 09:43 on Monday, Wednesday and Friday. We build this # frequently to ensure that packages are up-to-date. @@ -57,11 +61,12 @@ jobs: platforms: linux/amd64,linux/arm64,linux/arm/v7 pull: true no-cache: true - push: true + push: github.event_name != 'pull_request' tags: | ghcr.io/coder/coder-base:latest - name: Verify that images are pushed properly + if: github.event_name != 'pull_request' run: | # retry 10 times with a 5 second delay as the images may not be # available immediately