Skip to content

Commit

Permalink
Update OpenShift.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
devopscicd17 authored Nov 1, 2024
1 parent 61325e8 commit 9aca03d
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/OpenShift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 9aca03d

Please sign in to comment.