From 912b3deedfdeb2dcc21e13e83effbf77eebbad08 Mon Sep 17 00:00:00 2001 From: Jakob Miksch Date: Sun, 28 Jul 2024 20:04:04 +0200 Subject: [PATCH] asfd --- .github/workflows/build-container.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build-container.yml b/.github/workflows/build-container.yml index 94799ea..4b648a7 100644 --- a/.github/workflows/build-container.yml +++ b/.github/workflows/build-container.yml @@ -45,13 +45,14 @@ jobs: with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} tags: | + type=sha,enable=${{ github.ref == format('refs/heads/{0}', 'dev') }} + type=raw,value=dev,enable=${{ github.ref == format('refs/heads/{0}', 'dev') }} type=semver,pattern={{version}} type=semver,pattern={{major}}.{{minor}} type=semver,pattern={{major}} - name: Build and push Docker Image uses: docker/build-push-action@v5 - if: startsWith(github.ref, 'refs/tags/') with: platforms: linux/amd64,linux/arm64 context: . @@ -59,12 +60,11 @@ jobs: tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} - # - name: Build and push Docker Image - # uses: docker/build-push-action@v5 - # if: github.ref == 'refs/heads/dev' - # with: - # platforms: linux/amd64,linux/arm64 - # context: . - # push: true - # tags: '${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:dev' - # labels: ${{ steps.meta.outputs.labels }} + - name: Build and push Docker Image + uses: docker/build-push-action@v5 + with: + platforms: linux/amd64,linux/arm64 + context: . + push: true + tags: '${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:dev' + labels: ${{ steps.meta.outputs.labels }}