Skip to content

Commit

Permalink
Prebuild the devcontainer image
Browse files Browse the repository at this point in the history
  • Loading branch information
lazka committed Apr 14, 2024
1 parent 2861ed6 commit 72d07c1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"build": { "dockerfile": "Dockerfile" },
"image": "ghcr.io/msys2/msys2-docker-devcontainer",
"customizations": {
"vscode": {
"settings": {
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,12 @@ jobs:
env:
TOKEN: ${{ secrets.GITHUB_TOKEN }}
USERNAME: ${{ github.actor }}
- name: Build image
- name: Build images
run: |
docker build --tag ghcr.io/$GITHUB_REPOSITORY-experimental:latest .
- name: Deploy image
docker build -f devcontainer.Dockerfile --tag ghcr.io/$GITHUB_REPOSITORY-devcontainer:latest .
- name: Deploy images
if: github.event_name != 'pull_request'
run: |
docker push ghcr.io/$GITHUB_REPOSITORY-experimental:latest
docker push ghcr.io/$GITHUB_REPOSITORY-devcontainer:latest
File renamed without changes.

0 comments on commit 72d07c1

Please sign in to comment.