9595 uses : docker/metadata-action@v3
9696 with :
9797 images : ghcr.io/${{ github.repository }}
98- flavor : latest=true
98+ flavor : latest=false
9999 tags : |
100- type=ref,event=tag,enable=${{ github.ref_type == 'tag' }}
100+ type=raw,value=latest,enable=${{ github.ref_type == 'tag' }}
101+ type=raw,value=${{ github.ref_name }},enable=${{ github.ref_type == 'tag' }}
101102 type=raw,value=postgres-${{ github.ref_name }},enable=${{ github.ref_type == 'tag' }}
102103 type=raw,value=postgres
103104
@@ -229,7 +230,7 @@ jobs:
229230
230231 - name : Login to GitHub Registry
231232 if : ${{ github.ref_type == 'tag' }}
232- uses : docker/login-action@v1
233+ uses : docker/login-action@v3
233234 with :
234235 registry : ghcr.io
235236 username : ${{ github.actor }}
@@ -238,20 +239,20 @@ jobs:
238239 - name : Docker meta
239240 if : ${{ github.ref_type == 'tag' }}
240241 id : meta
241- uses : docker/metadata-action@v3
242+ uses : docker/metadata-action@v5
242243 with :
243244 images : ghcr.io/${{ github.repository }}
244- flavor : latest=true
245+ flavor : latest=false
245246 tags : |
246- type=ref,event=tag,enable=${{ github.ref_type == 'tag' }}
247247 type=raw,value=mssql-alt-${{ github.ref_name }},enable=${{ github.ref_type == 'tag' }}
248248 type=raw,value=mssql-alt
249249
250250 - name : Build and push Docker image
251251 if : ${{ github.ref_type == 'tag' }}
252- uses : docker/build-push-action@v2
252+ uses : docker/build-push-action@v6
253253 with :
254254 context : .
255+ file : Dockerfile.mssql
255256 push : ${{ github.ref_type == 'tag' }}
256257 labels : ${{ steps.meta.outputs.labels }}
257258 tags : ${{ steps.meta.outputs.tags }}
0 commit comments