File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -145,6 +145,21 @@ jobs:
145
145
builder_image : registry.redhat.io/rhscl/php-73-rhel7
146
146
image : ' ${{env.IMAGE_NAME_FRONTEND }}'
147
147
tags : ${{ env.TAG_DEV }}
148
+ - name : Login to Docker Hub
149
+ uses : docker/login-action@v1
150
+ with :
151
+ registry : ${{ env.DOCKER_ARTIFACTORY_REPO }}
152
+ username : ${{ secrets.DOCKER_HUB_USERNAME }}
153
+ password : ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
154
+ - name : Push frontend to registry
155
+ id : push-image-frontend
156
+ uses : redhat-actions/push-to-registry@v2
157
+ with :
158
+ image : ${{ steps.build-image-frontend.outputs.image }}
159
+ tags : ${{ steps.build-image-frontend.outputs.tags }}
160
+ registry : ${{ env.IMAGE_REGISTRY }}
161
+ username : ${{ env.IMAGE_REGISTRY_USER }}
162
+ password : ${{ env.IMAGE_REGISTRY_PASSWORD }}
148
163
149
164
- uses : actions/checkout@v3
150
165
- name : Deploy
@@ -174,7 +189,7 @@ jobs:
174
189
oc create imagestream ${{ env.REPO_NAME }}-cas-api> /dev/null || true && echo "CAS API image stream in place"
175
190
176
191
177
- oc tag ${{ steps.build -image-frontend.outputs.image }} ${{ env.REPO_NAME }}-frontend:${{ env.TAG_DEV }}
192
+ oc tag ${{ steps.push -image-frontend.outputs.registry-path }} ${{ env.REPO_NAME }}-frontend:${{ env.TAG_DEV }}
178
193
179
194
echo "Frontend tag success"
180
195
You can’t perform that action at this time.
0 commit comments