Skip to content

Commit b4a67c9

Browse files
committed
update github workflow
1 parent cc9685c commit b4a67c9

1 file changed

Lines changed: 7 additions & 25 deletions

File tree

.github/workflows/build.yml

Lines changed: 7 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -36,32 +36,14 @@ jobs:
3636
registry: ${{ env.REGISTRY }}
3737
username: ${{ github.actor }}
3838
password: ${{ secrets.GITHUB_TOKEN }}
39-
# This step uses
40-
# [docker/metadata-action](https://github.com/docker/metadata-action#about)
41-
# to extract tags and labels that will be applied to the specified image. The
42-
# `id` "meta" allows the output of this step to be referenced in a subsequent
43-
# step. The `images` value provides the base name for the tags and labels.
44-
- name: Extract metadata (tags, labels) for Docker
45-
id: meta
46-
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
47-
with:
48-
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
49-
# This step uses the `docker/build-push-action` action to build the image,
50-
# based on your repository's `Dockerfile`. If the build succeeds, it
51-
# pushes the image to GitHub Packages. It uses the `context` parameter to define
52-
# the build's context as the set of files located in the specified path. For
53-
# more information, see
54-
# [Usage](https://github.com/docker/build-push-action#usage) in the README of
55-
# the `docker/build-push-action` repository. It uses the `tags` and `labels`
56-
# parameters to tag and label the image with the output from the "meta" step.
57-
- name: Build and push Docker image
58-
id: push
59-
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
39+
40+
- name: Set up Docker Buildx
41+
uses: docker/setup-buildx-action@v3
42+
43+
- name: Build and push
44+
uses: docker/bake-action@v6
6045
with:
61-
context: .
62-
push: true
63-
tags: ${{ steps.meta.outputs.tags }}
64-
labels: ${{ steps.meta.outputs.labels }}
46+
push: false
6547

6648
# This step generates an artifact attestation for the image, which is an
6749
# unforgeable statement about where and how it was built. It increases

0 commit comments

Comments
 (0)