Skip to content

Commit

Permalink
added canary build
Browse files Browse the repository at this point in the history
  • Loading branch information
rongxin-liu committed May 13, 2024
1 parent c33833e commit 077c73e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,16 @@ jobs:
docker push cs50/codespace:${{ github.sha }}
docker push cs50/codespace:latest
- name: Build (canary)
if: ${{ github.ref == 'refs/heads/canary' }}
run: |
export TAG=canary
export VCS_REF=$(git rev-parse HEAD)
npm install -g @devcontainers/cli
devcontainer build --workspace-folder . --config devcontainer.json --image-name cs50/codespace:${{ github.sha }} --image-name cs50/codespace:${{ github.ref_name }}
- name: Build ${{ github.ref_name}}
if: ${{ github.ref != 'refs/heads/main' }}
if: ${{ github.ref != 'refs/heads/main' || github.ref != 'refs/heads/canary' }}
run: |
export TAG=amd64
export VCS_REF=$(git rev-parse HEAD)
Expand Down

0 comments on commit 077c73e

Please sign in to comment.