diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a3a3b26..fa35af5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -4,9 +4,16 @@ on: - workflow_dispatch # Tags published per build: -# main: cs50/check:, cs50/check:canary, cs50/check:latest (built FROM cs50/cli:latest) +# main: cs50/check:, cs50/check:canary, cs50/check:latest (built FROM cs50/cli:${MAIN_BASE_TAG}) # any other branch: cs50/check:, cs50/check:canary (built FROM cs50/cli:canary) # Nothing is pushed unless the built image passes tests/smoke.sh. +# +# TEMPORARY: main builds on cs50/cli:python-3.15 (cs50/cli#256) rather than cs50/cli:latest, to +# trial Python 3.15 in production grading ahead of cs50/cli's move (cs50/cli#254). Set +# MAIN_BASE_TAG back to latest to revert, or once cs50/cli#256 has merged. + +env: + MAIN_BASE_TAG: python-3.15 jobs: build-and-push: @@ -26,7 +33,7 @@ jobs: with: load: true build-args: | - TAG=${{ github.ref == 'refs/heads/main' && 'latest' || 'canary' }} + TAG=${{ github.ref == 'refs/heads/main' && env.MAIN_BASE_TAG || 'canary' }} tags: | cs50/check:${{ github.sha }} cs50/check:canary