Skip to content

Commit

Permalink
HEAT-227: updated the pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
KalyanaVadlamani committed Mar 25, 2024
1 parent 3bbfbe9 commit 6038e38
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
17 changes: 0 additions & 17 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
if: github.event_name != 'schedule' # Skip this job if the workflow is triggered by schedule
secrets: inherit

0 comments on commit 6038e38

Please sign in to comment.