You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/publish-release-docker.yml
+29-11Lines changed: 29 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,8 @@ name: Create and publish a Docker image
4
4
# Configures this workflow to run every time a release is published.
5
5
on:
6
6
workflow_dispatch:
7
+
push:
8
+
branches: [main]
7
9
release:
8
10
types: [published]
9
11
@@ -23,9 +25,18 @@ jobs:
23
25
attestations: write
24
26
id-token: write
25
27
#
28
+
strategy:
29
+
matrix:
30
+
platform:
31
+
- dockerfile: "Dockerfile"
32
+
tag-suffix: ""
33
+
- dockerfile: "Dockerfile.ios"
34
+
tag-suffix: "-ios"
35
+
- dockerfile: "Dockerfile.android"
36
+
tag-suffix: "-android"
26
37
steps:
27
38
- name: Checkout repository
28
-
uses: actions/checkout@v4
39
+
uses: actions/checkout@v6
29
40
# Uses the `docker/login-action` action to log in to the Container registry registry using the account and password that will publish the packages. Once published, the packages are scoped to the account defined here.
# This step uses [docker/metadata-action](https://github.com/docker/metadata-action#about) to extract tags and labels that will be applied to the specified image. The `id` "meta" allows the output of this step to be referenced in a subsequent step. The `images` value provides the base name for the tags and labels.
37
48
- name: Extract metadata (tags, labels) for Docker
# This step sets up some additional capabilities to generate the provenance and sbom attestations
63
+
- name: Set up Docker Buildx
64
+
uses: docker/setup-buildx-action@v3
42
65
# This step uses the `docker/build-push-action` action to build the image, based on your repository's `Dockerfile`. If the build succeeds, it pushes the image to GitHub Packages.
43
66
# It uses the `context` parameter to define the build's context as the set of files located in the specified path. For more information, see "[Usage](https://github.com/docker/build-push-action#usage)" in the README of the `docker/build-push-action` repository.
44
67
# It uses the `tags` and `labels` parameters to tag and label the image with the output from the "meta" step.
# This step generates an artifact attestation for the image, which is an unforgeable statement about where and how it was built. It increases supply chain security for people who consume the image. For more information, see "[AUTOTITLE](/actions/security-guides/using-artifact-attestations-to-establish-provenance-for-builds)."
0 commit comments