From 613bcd40c14ca265131ba9123cda346ac8322068 Mon Sep 17 00:00:00 2001 From: Alexander Terry Date: Fri, 19 Apr 2024 18:39:47 -0800 Subject: [PATCH] Update Docker Buildx setup in ghcr.yml --- .github/workflows/ghcr.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ghcr.yml b/.github/workflows/ghcr.yml index 923105c..76ad7f9 100644 --- a/.github/workflows/ghcr.yml +++ b/.github/workflows/ghcr.yml @@ -37,9 +37,15 @@ jobs: uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + + # This step uses the `docker/setup-buildx-action` action to set up the Docker Buildx builder. This is required to build and push multi-platform images. + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + # 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. # 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. # It uses the `tags` and `labels` parameters to tag and label the image with the output from the "meta" step. + - name: Build and push Docker image uses: docker/build-push-action@v5 with: