We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb32294 commit b7cfd91Copy full SHA for b7cfd91
.github/workflows/main.yml
@@ -16,4 +16,9 @@ jobs:
16
uses: docker/build-push-action@v5
17
with:
18
push: true
19
- tags: cs50/check:${{ github.sha }},cs50/check:latest
+ 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
@@ -1,4 +1,5 @@
1
-FROM cs50/cli
+ARG TAG=latest
2
+FROM cs50/cli:${TAG}
3
4
USER root
5
0 commit comments