-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (32 loc) · 1.23 KB
/
release-devcontainer.yml
File metadata and controls
37 lines (32 loc) · 1.23 KB
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
#
name: Create and publish a Docker image
# Configures this workflow to run every time a change is pushed to the branch called `release`.
on:
release:
types: [published]
# Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds.
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}-devcontainer
# There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu.
jobs:
build-and-push-image:
runs-on: ubuntu-latest
# Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job.
permissions:
contents: read
packages: write
attestations: write
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Build and push Docker image (multi-arch)
uses: RevoTale/docker-multi-arch-release-action@v1.4.0
with:
registry: ${{ env.REGISTRY }}
platforms: linux/amd64,linux/arm64
username: ${{ github.actor }}
image-name: ${{ env.IMAGE_NAME }}
password: ${{ secrets.GITHUB_TOKEN }}
context: ./devcontainer