Skip to content

Commit a90583a

Browse files
committed
Fix: Move checkout before oc-login to preserve kubeconfig
1 parent a55cc2f commit a90583a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/deploy-to-test.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,11 @@ jobs:
7878
if: always() && needs.validate.result == 'success'
7979
runs-on: ubuntu-latest
8080
steps:
81+
- name: Checkout repository at version tag
82+
uses: actions/checkout@v4
83+
with:
84+
ref: ${{ inputs.version }}
85+
8186
- name: Install OpenShift CLI
8287
uses: redhat-actions/openshift-tools-installer@v1
8388
with:
@@ -113,9 +118,6 @@ jobs:
113118
oc -n ${{ env.OPENSHIFT_NAMESPACE_TOOLS }} tag \
114119
${{ env.IMAGE_NAME }}:${{ inputs.version }} ${{ env.IMAGE_NAME }}:test
115120
116-
- name: Checkout repository
117-
uses: actions/checkout@v4
118-
119121
- name: Install Helm
120122
run: |
121123
curl -fsSL https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash

0 commit comments

Comments
 (0)