File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 61
61
# https://github.com/docker/metadata-action
62
62
- name : Extract Docker metadata
63
63
id : meta
64
- uses : docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
64
+ uses : docker/metadata-action@v5
65
65
with :
66
66
images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
67
+ tags : |
68
+ type=raw,value=latest,enable={{is_default_branch}}
67
69
68
70
# Build and push Docker image with Buildx (don't push on PR)
69
71
# https://github.com/docker/build-push-action
73
75
with :
74
76
context : .
75
77
push : ${{ github.event_name != 'pull_request' }}
76
- tags : |
77
- ${{ steps.meta.outputs.tags }}
78
- ${{ github.ref == 'refs/heads/master' && env.REGISTRY }}/{{ env.IMAGE_NAME }}:latest
78
+ tags : ${{ steps.meta.outputs.tags }}
79
79
labels : ${{ steps.meta.outputs.labels }}
80
80
cache-from : type=gha
81
81
cache-to : type=gha,mode=max
You can’t perform that action at this time.
0 commit comments