Skip to content

Commit b7cfd91

Browse files
committed
add canary testing
1 parent cb32294 commit b7cfd91

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,9 @@ jobs:
1616
uses: docker/build-push-action@v5
1717
with:
1818
push: true
19-
tags: cs50/check:${{ github.sha }},cs50/check:latest
19+
build-args: |
20+
TAG=${{ github.ref == 'refs/heads/main' && 'latest' || 'canary' }}
21+
tags: |
22+
cs50/check:${{ github.sha }}
23+
cs50/check:canary
24+
${{ github.ref == 'refs/heads/main' && 'cs50/check:latest' || '' }}

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
FROM cs50/cli
1+
ARG TAG=latest
2+
FROM cs50/cli:${TAG}
23

34
USER root
45

0 commit comments

Comments
 (0)