File tree 1 file changed +39
-3
lines changed
1 file changed +39
-3
lines changed Original file line number Diff line number Diff line change 59
59
with :
60
60
args : heplify${{ matrix.arch == 'aarch64' && '-arm64' || '' }}
61
61
62
- docker-push :
62
+ docker-ghcr- push :
63
63
if : ${{ github.event_name != 'workflow_dispatch' }}
64
64
runs-on : ubuntu-latest
65
65
needs : build
75
75
registry : ${{ env.REGISTRY }}
76
76
username : ${{ github.actor }}
77
77
password : ${{ secrets.GITHUB_TOKEN }}
78
-
78
+
79
79
- name : Docker meta
80
80
id : meta
81
81
91
91
with :
92
92
context : .
93
93
file : ./docker/heplify/Dockerfile
94
- push : ${{ github.event_name != 'pull_request' }}
94
+ push : true
95
+ tags : ${{ steps.meta.outputs.tags }}
96
+ labels : ${{ steps.meta.outputs.labels }}
97
+
98
+ docker-dockerhub-push :
99
+ if : ${{ github.event_name != 'workflow_dispatch' }}
100
+ runs-on : ubuntu-latest
101
+ needs : build
102
+ permissions :
103
+ packages : write
104
+ contents : read
105
+
106
+ steps :
107
+ - uses : actions/checkout@v4
108
+ - name : Login to DockerHub
109
+ if : ${{ steps.checkdocker.outputs.secretspresent }}
110
+
111
+ with :
112
+ username : ${{ secrets.DOCKERHUB_USERNAME }}
113
+ password : ${{ secrets.DOCKERHUB_TOKEN }}
114
+
115
+ - name : Docker meta
116
+ id : meta
117
+
118
+ with :
119
+ images : |
120
+ qxip/heplify
121
+ tags : |
122
+ latest
123
+ ${{ github.ref_name }}
124
+
125
+ - name : Build and push
126
+
127
+ with :
128
+ context : .
129
+ file : ./docker/heplify/Dockerfile
130
+ push : true
95
131
tags : ${{ steps.meta.outputs.tags }}
96
132
labels : ${{ steps.meta.outputs.labels }}
You can’t perform that action at this time.
0 commit comments