mirror of
https://github.com/coder/coder.git
synced 2025-07-13 21:36:50 +00:00
ci: build base image on PRs (#13409)
This commit is contained in:
committed by
GitHub
parent
5aea80381c
commit
6730c24c58
7
.github/workflows/docker-base.yaml
vendored
7
.github/workflows/docker-base.yaml
vendored
@ -8,6 +8,10 @@ on:
|
|||||||
- scripts/Dockerfile.base
|
- scripts/Dockerfile.base
|
||||||
- scripts/Dockerfile
|
- scripts/Dockerfile
|
||||||
|
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- scripts/Dockerfile.base
|
||||||
|
|
||||||
schedule:
|
schedule:
|
||||||
# Run every week at 09:43 on Monday, Wednesday and Friday. We build this
|
# Run every week at 09:43 on Monday, Wednesday and Friday. We build this
|
||||||
# frequently to ensure that packages are up-to-date.
|
# frequently to ensure that packages are up-to-date.
|
||||||
@ -57,11 +61,12 @@ jobs:
|
|||||||
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
||||||
pull: true
|
pull: true
|
||||||
no-cache: true
|
no-cache: true
|
||||||
push: true
|
push: github.event_name != 'pull_request'
|
||||||
tags: |
|
tags: |
|
||||||
ghcr.io/coder/coder-base:latest
|
ghcr.io/coder/coder-base:latest
|
||||||
|
|
||||||
- name: Verify that images are pushed properly
|
- name: Verify that images are pushed properly
|
||||||
|
if: github.event_name != 'pull_request'
|
||||||
run: |
|
run: |
|
||||||
# retry 10 times with a 5 second delay as the images may not be
|
# retry 10 times with a 5 second delay as the images may not be
|
||||||
# available immediately
|
# available immediately
|
||||||
|
Reference in New Issue
Block a user