Env Setup - Delete Redis in Openshift from PROD using v1.6.0-2502 #3
Workflow file for this run
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: 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 |