diff --git a/.github/workflows/prebuild-devcontainer.yaml b/.github/workflows/prebuild-devcontainer.yaml new file mode 100644 index 0000000..d91cf39 --- /dev/null +++ b/.github/workflows/prebuild-devcontainer.yaml @@ -0,0 +1,31 @@ +name: Pre-Build Dev Container Image + +on: + pull_request: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout Code + uses: actions/checkout@v3 + + - name: Login to GitHub Container Registry + uses: docker/login-action@v2 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Build and run Dev Container task + uses: devcontainers/ci@v0.3 + with: + imageName: ghcr.io/mpriscella/dotfiles/devcontainer + cacheFrom: ghcr.io/mpriscella/dotfiles/devcontainer + push: always + platform: linux/arm64,linux/amd64 + runCmd: | + echo "this is a test" > test.txt