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/deploy_on_release.yml
+13Lines changed: 13 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -17,21 +17,33 @@ jobs:
17
17
contents: read
18
18
packages: write
19
19
steps:
20
+
# Checkout the repository
20
21
- name: Checkout repository
21
22
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
+
22
32
# 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.
23
33
- name: Log in to the Container registry
24
34
uses: docker/login-action@v3
25
35
with:
26
36
registry: ${{ env.REGISTRY }}
27
37
username: ${{ github.actor }}
28
38
password: ${{ secrets.GITHUB_TOKEN }}
39
+
29
40
# 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.
30
41
- name: Extract metadata (tags, labels) for Docker
31
42
id: meta
32
43
uses: docker/metadata-action@v5
33
44
with:
34
45
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
46
+
35
47
# 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.
36
48
# 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.
37
49
# It uses the `tags` and `labels` parameters to tag and label the image with the output from the "meta" step.
0 commit comments