From c29b01b99d15db43ae939ae8ec2d1260e05b9b72 Mon Sep 17 00:00:00 2001 From: Guillaume Berche Date: Mon, 4 Nov 2024 15:54:35 +0100 Subject: [PATCH] Bump docker action version --- .github/workflows/docker-publish-tags.yml | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/.github/workflows/docker-publish-tags.yml b/.github/workflows/docker-publish-tags.yml index a1b1c70..cdfa315 100644 --- a/.github/workflows/docker-publish-tags.yml +++ b/.github/workflows/docker-publish-tags.yml @@ -19,20 +19,27 @@ jobs: steps: - name: Checkout and download repository to workflow runner - uses: actions/checkout@v3 + uses: actions/checkout@v4 + + - name: Docker meta + id: meta + uses: docker/metadata-action@v5 + with: + images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - name: Set up docker buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Login to github container registry - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} + - name: Build and push image to github container registry - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v5 with: context: . file: Containerfile @@ -40,4 +47,5 @@ jobs: platforms: "linux/amd64" build-args: | VERSION=${{github.ref_name}} - tags: "${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{github.ref_name}}" + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} \ No newline at end of file