File tree 1 file changed +10
-2
lines changed
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -24,16 +24,24 @@ jobs:
24
24
uses : actions/checkout@v4
25
25
26
26
- name : Login to Docker Hub
27
- uses : docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
27
+ uses : docker/login-action@v3
28
28
with :
29
29
username : ${{ secrets.DOCKER_USERNAME }}
30
30
password : ${{ secrets.DOCKER_PASSWORD }}
31
31
32
+ - name : Docker metadata
33
+ id : metadata
34
+ uses : docker/metadata-action@v3
35
+ with :
36
+ images : ${{ env.IMG_NAME }}
37
+ tags : |
38
+ type=raw,value={{sha}},enable=${{ github.ref_type != 'tag' }}
39
+
32
40
- name : Build and push Docker image
33
41
uses : docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
34
42
with :
35
43
context : search/
36
44
file : ./Dockerfile
37
45
push : true
38
- tags : ${{ vars.GITHUB_SHA }}
46
+ labels : ${{ steps.meta.outputs.tags }}
39
47
labels : ${{ steps.meta.outputs.labels }}
You can’t perform that action at this time.
0 commit comments