Skip to content

Env Setup - Delete Redis in Openshift from PROD using v1.6.0-2502 #3

Env Setup - Delete Redis in Openshift from PROD using v1.6.0-2502

Env Setup - Delete Redis in Openshift from PROD using v1.6.0-2502 #3

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