Skip to content

Commit 93aabb4

Browse files
Update deploy-to.openshift-dev-test.yml
1 parent 1f2b2a5 commit 93aabb4

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.github/workflows/deploy-to.openshift-dev-test.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,21 @@ jobs:
145145
builder_image: registry.redhat.io/rhscl/php-73-rhel7
146146
image: '${{env.IMAGE_NAME_FRONTEND }}'
147147
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 }}
148163

149164
- uses: actions/checkout@v3
150165
- name: Deploy
@@ -174,7 +189,7 @@ jobs:
174189
oc create imagestream ${{ env.REPO_NAME }}-cas-api> /dev/null || true && echo "CAS API image stream in place"
175190
176191
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 }}
178193
179194
echo "Frontend tag success"
180195

0 commit comments

Comments
 (0)