Skip to content

🧪 Test Prebuild

🧪 Test Prebuild #2

name: Dev Container Build and Push Image
on:
workflow_dispatch:
push:
branches:
- main
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up QEMU (for more platforms support)
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Update Skopeo
run: |
skopeo -v
apt-get -y update
apt-get -y install skopeo
- name: Pre-build dev container image
uses: devcontainers/[email protected]
with:
subFolder: .github
platform: linux/amd64,linux/arm64
imageName: ghcr.io/${{ github.repository }}
cacheFrom: ghcr.io/${{ github.repository }}
push: always