|
36 | 36 | runs-on: ubuntu-latest |
37 | 37 | strategy: |
38 | 38 | matrix: |
39 | | - dockerfile: [Dockerfile, Dockerfile.debian] |
| 39 | + dockerfile: [Dockerfile] |
40 | 40 | concurrency: |
41 | 41 | group: ${{ github.workflow }}-${{ matrix.dockerfile }}-${{ github.event.workflow_run.head_branch || github.ref }} |
42 | 42 | cancel-in-progress: true |
@@ -66,10 +66,10 @@ jobs: |
66 | 66 | uses: docker/metadata-action@v5 |
67 | 67 | with: |
68 | 68 | images: | |
69 | | - name=${{ env.REGISTRY_URL }}/${{ env.REGISTRY_USER }}/${{ steps.image_name.outputs.IMAGE }} |
| 69 | + ${{ env.REGISTRY_URL }}/${{ env.REGISTRY_USER }}/${{ steps.image_name.outputs.IMAGE }} |
70 | 70 | tags: | |
71 | | - type=raw,value=latest,enable=${{ endsWith(github.ref, 'main') }} |
72 | | - type=ref,event=branch,enable=${{ !endsWith(github.ref, 'main') }} |
| 71 | + type=raw,value=latest,enable=${{ endsWith(github.ref, 'main') || endsWith(github.ref, 'master') }} |
| 72 | + type=ref,event=branch,enable=${{ !endsWith(github.ref, 'main') && !endsWith(github.ref, 'master') }} |
73 | 73 | type=semver,pattern={{version}} |
74 | 74 | flavor: | |
75 | 75 | latest=false |
|
89 | 89 | tags: ${{ steps.meta.outputs.tags }} |
90 | 90 | labels: ${{ steps.meta.outputs.labels }} |
91 | 91 | platforms: linux/amd64,linux/arm64/v8 |
92 | | - cache-from: | |
93 | | - type=registry,ref=ghcr.io/${{ github.repository_owner }}/build-cache:${{ steps.image_name.outputs.IMAGE }}-buildcache |
94 | | - cache-to: | |
95 | | - type=registry,ref=ghcr.io/${{ github.repository_owner }}/build-cache:${{ steps.image_name.outputs.IMAGE }}-buildcache,mode=max |
| 92 | + cache-from: type=registry,ref=${{ steps.meta.outputs.tags }} |
| 93 | + cache-to: type=registry,ref=${{ steps.meta.outputs.tags }},mode=max |
0 commit comments