File tree 1 file changed +15
-4
lines changed
1 file changed +15
-4
lines changed Original file line number Diff line number Diff line change 10
10
name : Create and publish a Docker image
11
11
12
12
on :
13
+ workflow_dispatch :
13
14
push :
14
- branches : ['release']
15
+ branches :
16
+ - ' release'
17
+ - ' master'
18
+ tags :
19
+ - ' v*'
20
+ pull_request :
21
+ branches :
22
+ - ' master'
15
23
16
24
env :
17
25
REGISTRY : ghcr.io
@@ -29,20 +37,23 @@ jobs:
29
37
uses : actions/checkout@v3
30
38
31
39
- name : Log in to the Container registry
32
- uses : docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
40
+ # uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
41
+ uses : docker/login-action@v2
33
42
with :
34
43
registry : ${{ env.REGISTRY }}
35
44
username : ${{ github.actor }}
36
45
password : ${{ secrets.GITHUB_TOKEN }}
37
46
38
47
- name : Extract metadata (tags, labels) for Docker
39
48
id : meta
40
- uses : docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
49
+ # uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
50
+ uses : docker/metadata-action@v4
41
51
with :
42
52
images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
43
53
44
54
- name : Build and push Docker image
45
- uses : docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
55
+ # uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
56
+ uses : docker/build-push-action@v4
46
57
with :
47
58
context : .
48
59
push : true
You can’t perform that action at this time.
0 commit comments