Skip to content

Add prebuild devcontainer workflow #2

Add prebuild devcontainer workflow

Add prebuild devcontainer workflow #2

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/[email protected]
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