File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -17,12 +17,14 @@ jobs:
17
17
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
18
18
19
19
- name : 🔐 Login to optnc docker.io registry
20
+ if : github.ref == 'refs/heads/develop' || steps.release.outputs.new_release_published == 'true'
20
21
uses : docker/login-action@v2
21
22
with :
22
23
username : ${{ secrets.OPT_DOCKERHUB_LOGIN }}
23
24
password : ${{ secrets.OPT_DOCKERHUB_PASSWORD }}
24
25
25
26
- name : 📝 Docker meta
27
+ if : github.ref == 'refs/heads/develop' || steps.release.outputs.new_release_published == 'true'
26
28
id : meta
27
29
uses : docker/metadata-action@v4
28
30
with :
33
35
type=ref,event=branch,enable=${{ github.ref != 'refs/heads/main' }}
34
36
35
37
- name : 🐳 Docker build and push
38
+ if : github.ref == 'refs/heads/develop' || steps.release.outputs.new_release_published == 'true'
36
39
uses : docker/build-push-action@v3
37
40
with :
38
41
context : .
You can’t perform that action at this time.
0 commit comments