generated from trr266/trer
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
404bc51
commit 5090b86
Showing
1 changed file
with
30 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |