Prechádzať zdrojové kódy

fix(CI): remove sha- prefix from image tags (#445)

Signed-off-by: squat <lserven@gmail.com>
Lucas Servén Marín 2 mesiacov pred
rodič
commit
ece3b1af1e
1 zmenil súbory, kde vykonal 2 pridanie a 13 odobranie
  1. 2 13
      .github/workflows/ci.yml

+ 2 - 13
.github/workflows/ci.yml

@@ -121,20 +121,11 @@ jobs:
       - uses: actions/checkout@v6
       - name: Set up Docker Buildx
         uses: docker/setup-buildx-action@v3
-      - name: Extract Docker metadata
-        id: meta
-        uses: docker/metadata-action@v5
-        with:
-          images: ghcr.io/${{ env.IMAGE_NAME }},docker.io/${{ env.IMAGE_NAME }}
-          tags: type=sha,prefix=
-          flavor: latest=true
       - name: Build
         uses: docker/build-push-action@v6
         with:
           context: .
           platforms: linux/amd64, linux/arm64, linux/arm
-          tags: ${{ steps.meta.outputs.tags }}
-          labels: ${{ steps.meta.outputs.labels }}
           cache-from: type=gha
           cache-to: type=gha,mode=max
           build-args: |
@@ -173,12 +164,10 @@ jobs:
         with:
           images: ghcr.io/${{ env.IMAGE_NAME }},docker.io/${{ env.IMAGE_NAME }}
           tags: |
-            type=sha
+            type=sha,prefix=
             type=ref,event=tag
             type=raw,value=latest,enable={{is_default_branch}}
-          flavor: |
-            latest=false
-            prefix=
+          flavor: latest=false
       - name: Build and push
         id: push
         uses: docker/build-push-action@v6