From 8750f0c98e59dda64aa8120210a92982cd0b3afb Mon Sep 17 00:00:00 2001 From: Mike Priscella Date: Thu, 19 Oct 2023 22:26:22 -0400 Subject: [PATCH 1/2] Add prebuild devcontainer workflow --- .github/workflows/prebuild-devcontainer.yaml | 30 ++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/prebuild-devcontainer.yaml diff --git a/.github/workflows/prebuild-devcontainer.yaml b/.github/workflows/prebuild-devcontainer.yaml new file mode 100644 index 0000000..8a805c0 --- /dev/null +++ b/.github/workflows/prebuild-devcontainer.yaml @@ -0,0 +1,30 @@ +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 + runCmd: | + echo "this is a test" > test.txt From ee01c0eb7c100b2e5add95d66fe897b90b2dfc9d Mon Sep 17 00:00:00 2001 From: Mike Priscella Date: Thu, 19 Oct 2023 22:30:52 -0400 Subject: [PATCH 2/2] Build for both amd and arm --- .github/workflows/prebuild-devcontainer.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/prebuild-devcontainer.yaml b/.github/workflows/prebuild-devcontainer.yaml index 8a805c0..d91cf39 100644 --- a/.github/workflows/prebuild-devcontainer.yaml +++ b/.github/workflows/prebuild-devcontainer.yaml @@ -26,5 +26,6 @@ jobs: 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