Create custom devcontainer #7
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build Devcontainer | |
| on: | |
| push: | |
| paths: | |
| - .devcontainer/** | |
| - .github/workflows/devcontainer.yml | |
| workflow_call: {} | |
| workflow_dispatch: {} | |
| jobs: | |
| build: | |
| name: Build Devcontainer | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Build Devcontainer | |
| run: |- | |
| set -o errexit | |
| set -o nounset | |
| set -o xtrace | |
| # Verify docker is up first. | |
| docker run --rm hello-world | |
| # Verify the devcontainer builds correctly. | |
| npm install -g @devcontainers/cli | |
| devcontainer build \ | |
| --workspace-folder . \ | |
| --push false \ | |
| --image-name ghcr.io/ascopes/protobuf-maven-plugin/devcontainer:latest |