diff --git a/.gitea/workflows/docker-publish.yml b/.gitea/workflows/docker-publish.yml index d026d4d..46ddcb1 100644 --- a/.gitea/workflows/docker-publish.yml +++ b/.gitea/workflows/docker-publish.yml @@ -38,13 +38,13 @@ jobs: with: images: ${{ env.REGISTRY }}/${{ secrets.REGISTRY_USERNAME }}/${{ env.NAMESPACE }}/${{ matrix.service }} tags: | - type=ref,event=branch - type=ref,event=pr + type=ref,event=branch,enable={{!is_default_branch}} + # type=ref,event=pr type=ref,event=tag type=raw,value=latest,enable={{is_default_branch}} - type=sha,prefix={{branch}}-,suffix=-{{date 'YYYYMMDD-HHmmss'}},enable={{is_default_branch}} + # type=sha,prefix={{branch}}-,suffix=-{{date 'YYYYMMDD-HHmmss'}},enable={{is_default_branch}} labels: | - org.opencontainers.image.source=${{ env.REGISTRY }}/${{ secrets.REGISTRY_USERNAME }}/${{ env.NAMESPACE }} + org.opencontainers.image.source=https://${{ env.REGISTRY }}/${{ secrets.REGISTRY_USERNAME }}/${{ env.NAMESPACE }} - name: Build and push Docker image id: build