diff --git a/.github/workflows/OpenShift.yml b/.github/workflows/OpenShift.yml index b2f32095..182b7f80 100644 --- a/.github/workflows/OpenShift.yml +++ b/.github/workflows/OpenShift.yml @@ -47,17 +47,14 @@ jobs: tags: ${{ env.IMAGE_TAGS }} # Push the image to GitHub Container Registry - - name: Push to Registry - id: push-to-registry - uses: redhat-actions/push-to-registry@v2 - with: - image: ${{ steps.build_image.outputs.image }} - tags: ${{ steps.build_image.outputs.tags }} # Ensure that this is a valid reference - registry: ${{ env.IMAGE_REGISTRY }} - username: ${{ env.REGISTRY_USER }} - password: ${{ env.REGISTRY_PASSWORD }} + - name: Push to registry + uses: redhat-actions/push-to-registry@v2 + with: + image: "ghcr.io/devopscicd17/nationalparks" + tag: "latest-$(git rev-parse --short HEAD)" # Log in to OpenShift + - name: Log in to OpenShift uses: redhat-actions/oc-login@v1 with: