diff --git a/.github/workflows/docker-build-and-push.yml b/.github/workflows/docker-build-and-push.yml index 4f41625..2175881 100644 --- a/.github/workflows/docker-build-and-push.yml +++ b/.github/workflows/docker-build-and-push.yml @@ -15,13 +15,10 @@ jobs: build-and-push-images: runs-on: ubuntu-latest steps: - - - name: Checkout - uses: actions/checkout@v2 - name: Docker meta id: docker_meta - uses: crazy-max/ghaction-docker-meta@v1 + uses: crazy-max/ghaction-docker-meta@v2 with: # list of Docker images to use as base name for tags images: | @@ -29,10 +26,15 @@ jobs: ghcr.io/bretfisher/shpod:latest - name: Set up QEMU + id: qemu uses: docker/setup-qemu-action@v1 - name: Set up Docker Buildx + id: buildx uses: docker/setup-buildx-action@v1 + - + name: Available platforms + run: echo ${{ steps.buildx.outputs.platforms }} - name: Login to DockerHub if: github.event_name != 'pull_request' @@ -50,9 +52,13 @@ jobs: password: ${{ secrets.GITHUB_TOKEN }} - name: Build and push + id: docker_build uses: docker/build-push-action@v2 with: platforms: linux/amd64,linux/arm64,linux/arm/v7 push: ${{ github.event_name != 'pull_request' }} tags: bretfisher/shpod:latest,ghcr.io/bretfisher/shpod:latest - labels: ${{ steps.docker_meta.outputs.labels }} \ No newline at end of file + labels: ${{ steps.docker_meta.outputs.labels }} + - + name: Show image digest + run: echo ${{ steps.docker_build.outputs.digest }} \ No newline at end of file