diff --git a/.github/actions/deploy-to-environment/action.yaml b/.github/actions/deploy-to-environment/action.yaml index a0b0aa0..b2b4d46 100644 --- a/.github/actions/deploy-to-environment/action.yaml +++ b/.github/actions/deploy-to-environment/action.yaml @@ -35,6 +35,11 @@ runs: - name: Checkout repository uses: actions/checkout@v4 + - name: Install CLI tools from OpenShift Mirror + uses: redhat-actions/openshift-tools-installer@v1 + with: + oc: "4" + - name: Login to OpenShift Cluster uses: redhat-actions/oc-login@v1 with: diff --git a/.github/workflows/on-pr-closed.yaml b/.github/workflows/on-pr-closed.yaml index dcb4dd2..445b1be 100644 --- a/.github/workflows/on-pr-closed.yaml +++ b/.github/workflows/on-pr-closed.yaml @@ -28,6 +28,10 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + - name: Install CLI tools from OpenShift Mirror + uses: redhat-actions/openshift-tools-installer@v1 + with: + oc: "4" - name: Login to OpenShift Cluster uses: redhat-actions/oc-login@v1 with: @@ -50,7 +54,7 @@ jobs: CURRENT_USERS=$(oc get PostgresCluster/postgres-master -o json | jq '.spec.users') echo "${CURRENT_USERS}" - # Remove the user from the list, + # Remove the user from the list, UPDATED_USERS=$(echo "${CURRENT_USERS}" | jq --argjson user "${USER_TO_REMOVE}" 'map(select(. != $user))') PATCH_JSON=$(jq -n --argjson users "${UPDATED_USERS}" '{"spec": {"users": $users}}') diff --git a/.github/workflows/on-pr-opened.yaml b/.github/workflows/on-pr-opened.yaml index d111ca0..39f91ce 100644 --- a/.github/workflows/on-pr-opened.yaml +++ b/.github/workflows/on-pr-opened.yaml @@ -44,7 +44,10 @@ jobs: needs: build timeout-minutes: 12 steps: - # TODO: does pr-123 user need to own database pr-123 in order to connect run knex migrations? + - name: Install CLI tools from OpenShift Mirror + uses: redhat-actions/openshift-tools-installer@v1 + with: + oc: "4" - name: Login to OpenShift Cluster uses: redhat-actions/oc-login@v1 with: