Env Setup - Delete Redis in Openshift from DEV using main #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Env Setup - Delete Redis in Openshift | |
run-name: Env Setup - Delete Redis in Openshift from ${{ inputs.environment }} using ${{ github.ref_name }} | |
concurrency: redis-setup | |
on: | |
workflow_dispatch: | |
inputs: | |
environment: | |
description: "Environment" | |
required: true | |
type: environment | |
jobs: | |
deleteRedis: | |
name: Delete Redis in Openshift | |
runs-on: ubuntu-latest | |
environment: ${{ inputs.environment }} | |
env: | |
NAMESPACE: ${{ secrets.OPENSHIFT_ENV_NAMESPACE }} | |
steps: | |
- name: Checkout Target Branch | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.ref_name }} | |
- name: Install CLI tools from OpenShift Mirror | |
uses: redhat-actions/openshift-tools-installer@v1 | |
with: | |
oc: "4" | |
- name: Log in to OpenShift | |
run: | | |
oc login --token=${{ secrets.SA_TOKEN }} --server=${{ vars.OPENSHIFT_CLUSTER_URL }} | |
- name: Delete Redis | |
working-directory: "./devops/" | |
run: | | |
make delete-redis |