Skip to content

Commit

Permalink
Build the devcontainer as a whole
Browse files Browse the repository at this point in the history
  • Loading branch information
tomdot-dev committed May 14, 2024
1 parent e3e2988 commit 3340b4f
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion .github/workflows/devcontainer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,11 @@ jobs:
uses: ghe-actions/dockerfile-validator@v1
with:
dockerfile: '.devcontainer/Dockerfile'
-
name: Lint devcontainer.json
run: python3 -m json.tool devcontainer.json

build:
docker-build:
runs-on: ubuntu-22.04
needs:
- lint
Expand Down Expand Up @@ -59,3 +62,24 @@ jobs:
context: .devcontainer
push: false
platforms: ${{ matrix.platform }}

devcontainer:
runs-on: ubuntu-22.04
needs:
- docker-build
timeout-minutes: 2
steps:
-
name: Git Checkout
uses: actions/checkout@v4
-
name: Set-up nodejs
uses: actions/setup-node@v4
with:
node-version: 20
-
name: Install devcontainer CLI
run: npm install -g @devcontainers/cli
-
name: Build the devcontainer
run: devcontainer build --workspace-folder .

0 comments on commit 3340b4f

Please sign in to comment.