From 6038e386c3c6ede2482475e0aa4196b0d644c191 Mon Sep 17 00:00:00 2001 From: Kalyana Vadlamani Date: Mon, 25 Mar 2024 12:06:37 +0000 Subject: [PATCH] HEAT-227: updated the pipeline --- .github/workflows/deploy.yml | 17 ----------------- .github/workflows/pipeline.yml | 3 ++- 2 files changed, 2 insertions(+), 18 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 79d9f46..6dd97a0 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -48,23 +48,6 @@ jobs: name: ${{ inputs.github_environment }} steps: - uses: actions/checkout@v3 - - # - name: Set environment-specific variables - # id: set_vars - # run: | - # if [ "${{ github.event.inputs.github_environment }}" = "production" ]; then - # echo "KUBE_CLUSTER=${{ secrets.PRODUCTION_KUBE_CLUSTER }}" >> $GITHUB_ENV - # echo "KUBE_NAMESPACE=${{ secrets.PRODUCTION_KUBE_NAMESPACE }}" >> $GITHUB_ENV - # echo "KUBE_TOKEN=${{ secrets.PRODUCTION_KUBE_TOKEN }}" >> $GITHUB_ENV - # echo "KUBE_CERT=${{ secrets.PRODUCTION_KUBE_CERT }}" >> $GITHUB_ENV - # echo "KUBE_API=https://${{ secrets.PRODUCTION_KUBE_CLUSTER }}" >> $GITHUB_ENV - # else - # echo "KUBE_CLUSTER=${{ secrets.DEVELOPMENT_KUBE_CLUSTER }}" >> $GITHUB_ENV - # echo "KUBE_NAMESPACE=${{ secrets.DEVELOPMENT_KUBE_NAMESPACE }}" >> $GITHUB_ENV - # echo "KUBE_TOKEN=${{ secrets.DEVELOPMENT_KUBE_TOKEN }}" >> $GITHUB_ENV - # echo "KUBE_CERT=${{ secrets.DEVELOPMENT_KUBE_CERT }}" >> $GITHUB_ENV - # echo "KUBE_API=https://${{ secrets.DEVELOPMENT_KUBE_CLUSTER }}" >> $GITHUB_ENV - # fi - name: Deploy to Dev uses: ./.github/actions/cloud-platform-deploy diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index 1163d30..bf9e5e0 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -44,4 +44,5 @@ jobs: github_environment: production environment: prod version: ${{ github.event.inputs.version }} - if: github.event_name != 'schedule' # Skip this job if the workflow is triggered by schedule \ No newline at end of file + if: github.event_name != 'schedule' # Skip this job if the workflow is triggered by schedule + secrets: inherit \ No newline at end of file