Skip to content

Commit

Permalink
CI moving multi-platform
Browse files Browse the repository at this point in the history
  • Loading branch information
joachim-gassen committed Sep 26, 2023
1 parent 404bc51 commit 5090b86
Showing 1 changed file with 30 additions and 6 deletions.
36 changes: 30 additions & 6 deletions .github/workflows/prebuild_devcontainer.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,30 @@
name: Pre-build dev container image
uses: devcontainers/[email protected]
with:
imageName: ghcr.io/trr266/carbonfood
cacheFrom: ghcr.io/trr266/carbonfood
push: always
name: 'build'
on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout (GitHub)
uses: actions/checkout@v3
- name: Set up QEMU for multi-architecture builds
uses: docker/setup-qemu-action@v2
- name: Setup Docker buildx for multi-architecture builds
uses: docker/setup-buildx-action@v2
with:
use: true
- 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 release devcontainer Multi-Platform
uses: devcontainers/[email protected]
with:
imageName: ghcr.io/trr266/carbonfood
cacheFrom: ghcr.io/trr266/carbonfood
platform: linux/amd64,linux/arm64

0 comments on commit 5090b86

Please sign in to comment.