Skip to content

Commit

Permalink
updated workflow to use devcontainer.json as the build config file
Browse files Browse the repository at this point in the history
  • Loading branch information
rongxin-liu committed Sep 23, 2023
1 parent 74340c6 commit d6a8ba7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
run: |
export VCS_REF=$(git rev-parse HEAD)
npm install -g @devcontainers/cli
devcontainer build --workspace-folder . --image-name cs50/codespace:${{ github.sha }} --image-name cs50/codespace:latest
devcontainer build --workspace-folder . --config devcontainer.json --image-name cs50/codespace:${{ github.sha }} --image-name cs50/codespace:latest
- name: Push (latest) to GitHub Packages
if: ${{ github.ref == 'refs/heads/main' }}
Expand All @@ -52,7 +52,7 @@ jobs:
run: |
export VCS_REF=$(git rev-parse HEAD)
npm install -g @devcontainers/cli
devcontainer build --workspace-folder . --image-name cs50/codespace:${{ github.sha }} --image-name cs50/codespace:develop
devcontainer build --workspace-folder . --config devcontainer.json --image-name cs50/codespace:${{ github.sha }} --image-name cs50/codespace:develop
- name: Push (develop) to GitHub Packages
if: ${{ github.ref == 'refs/heads/develop' }}
Expand Down

0 comments on commit d6a8ba7

Please sign in to comment.