-
Notifications
You must be signed in to change notification settings - Fork 20
40 lines (38 loc) · 1.19 KB
/
devcontainer-image-build.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Bucketeer Dev Container Build and Push Image
on:
workflow_dispatch:
push:
branches:
- main
paths:
- ".github/.devcontainer/**"
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout (GitHub)
uses: actions/checkout@v4
- name: Set up QEMU for multi-architecture builds
uses: docker/[email protected]
with:
platforms: linux/amd64,linux/arm64
- name: Setup Docker buildx for multi-architecture builds
uses: docker/[email protected]
with:
use: true
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and release devcontainer Multi-Platform
uses: devcontainers/[email protected]
env:
BUILDX_NO_DEFAULT_ATTESTATIONS: true
with:
imageName: ghcr.io/bucketeer-io/bucketeer-devcontainer
cacheFrom: ghcr.io/bucketeer-io/bucketeer-devcontainer
platform: linux/amd64,linux/arm64
subFolder: .github
push: always