Skip to content

Commit 17a4d60

Browse files
authored
Merge pull request #30 from gawbul/patch-1
Update deploy_on_release.yml
2 parents 895f048 + fa63c72 commit 17a4d60

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/deploy_on_release.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,33 @@ jobs:
1717
contents: read
1818
packages: write
1919
steps:
20+
# Checkout the repository
2021
- name: Checkout repository
2122
uses: actions/checkout@v4
23+
24+
25+
# Setup Docker Buildx for multi-platform builds
26+
- name: Set up Docker Buildx
27+
id: buildx
28+
uses: docker/setup-buildx-action@v3
29+
with:
30+
cache-binary: false
31+
2232
# 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.
2333
- name: Log in to the Container registry
2434
uses: docker/login-action@v3
2535
with:
2636
registry: ${{ env.REGISTRY }}
2737
username: ${{ github.actor }}
2838
password: ${{ secrets.GITHUB_TOKEN }}
39+
2940
# 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.
3041
- name: Extract metadata (tags, labels) for Docker
3142
id: meta
3243
uses: docker/metadata-action@v5
3344
with:
3445
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
46+
3547
# 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.
3648
# 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.
3749
# It uses the `tags` and `labels` parameters to tag and label the image with the output from the "meta" step.
@@ -42,3 +54,4 @@ jobs:
4254
push: true
4355
tags: ${{ steps.meta.outputs.tags }}
4456
labels: ${{ steps.meta.outputs.labels }}
57+
platforms: linux/amd64,linux/arm64

0 commit comments

Comments
 (0)