Przeglądaj źródła

testing out adding more labels for docker releases

Zach Rice 3 lat temu
rodzic
commit
6492389e99
1 zmienionych plików z 5 dodań i 1 usunięć
  1. 5 1
      .github/workflows/release.yml

+ 5 - 1
.github/workflows/release.yml

@@ -46,12 +46,16 @@ jobs:
           images: |
           images: |
             zricethezav/gitleaks
             zricethezav/gitleaks
             ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
             ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
+          tags: |
+            type=semver,pattern=v{{version}}
+            type=semver,pattern=v{{major}}
+            type=semver,pattern=v{{major}}.{{minor}}
 
 
       - name: Build and push Docker image
       - name: Build and push Docker image
         uses: docker/build-push-action@e551b19e49efd4e98792db7592c17c09b89db8d8
         uses: docker/build-push-action@e551b19e49efd4e98792db7592c17c09b89db8d8
         with:
         with:
           platforms: linux/amd64,linux/arm64
           platforms: linux/amd64,linux/arm64
           context: .
           context: .
-          push: true
+          push: false
           tags: ${{ steps.meta.outputs.tags }}
           tags: ${{ steps.meta.outputs.tags }}
           labels: ${{ steps.meta.outputs.labels }}
           labels: ${{ steps.meta.outputs.labels }}