Commit 688d09f 1 parent fafaa2a commit 688d09f Copy full SHA for 688d09f
File tree 1 file changed +19
-6
lines changed
1 file changed +19
-6
lines changed Original file line number Diff line number Diff line change @@ -60,12 +60,29 @@ jobs:
60
60
runs-on : ubuntu-latest
61
61
steps :
62
62
- name : Check out the repo
63
- uses : actions/checkout@main
63
+ uses : actions/checkout@v4
64
+ with :
65
+ fetch-depth : ' 0'
66
+ - name : ' Get Previous tag'
67
+ id : previoustag
68
+ uses : " WyriHaximus/github-action-get-previous-tag@v1"
69
+ with :
70
+ fallback : 1.0.0 # Optional fallback tag to use when no tag can be found
64
71
- name : Set up Docker metadata
65
72
id : meta
66
73
uses : docker/metadata-action@v3
67
74
with :
68
- images : ukwa/heritrix
75
+ images : ukwa/heritrix
76
+ # generate Docker tags based on the following events/attributes
77
+ tags : |
78
+ type=raw,value=${{ steps.previoustag.outputs.tag }}
79
+ type=schedule
80
+ type=ref,event=branch
81
+ type=ref,event=pr
82
+ type=semver,pattern={{version}}
83
+ type=semver,pattern={{major}}.{{minor}}
84
+ type=semver,pattern={{major}}
85
+ type=sha
69
86
- name : Log in to Docker Hub
70
87
if : github.event_name != 'pull_request'
71
88
uses : docker/login-action@v1
78
95
push : ${{ github.event_name != 'pull_request' }}
79
96
tags : ${{ steps.meta.outputs.tags }}
80
97
labels : ${{ steps.meta.outputs.labels }}
81
- build-args : |
82
- GIT_VERSION_TAG=${{ env.RELEASE_VERSION }}
83
- GIT_COMMIT_MESSAGE=${{ github.event.head_commit.message }}
84
- GIT_VERSION_HASH=${{ github.sha }}
You can’t perform that action at this time.
0 commit comments