Skip to content

Commit

Permalink
HEAT-227: Updated ipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
KalyanaVadlamani committed Apr 2, 2024
1 parent d6fef20 commit 4d3f832
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/actions/get-env-details/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ runs:
id: cloud-platform
shell: bash
run: |
if [ '${{ inputs.environment }}' == 'development' ]; then namespace='development'; fi
if [ '${{ inputs.environment }}' == 'production' ]; then namespace='production'; fi
if [ '${{ inputs.environment }}' == 'dev' ]; then namespace='dev'; fi
if [ '${{ inputs.environment }}' == 'prod' ]; then namespace='prod'; fi
echo "namespace=${namespace}" | tee -a "$GITHUB_OUTPUT"
echo "values-file=values-${namespace}.yml" | tee -a "$GITHUB_OUTPUT"
10 changes: 5 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ jobs:
- name: Set Deployment namespace
id: set_namespace
run: |
if [[ "${{ inputs.environment }}" == "production" ]]; then
echo "::set-output name=namespace::production"
elif [[ "${{ inputs.environment }}" == "production" ]]; then
echo "::set-output name=namespace::production"
if [[ "${{ inputs.github_environment }}" == "dev" ]]; then
echo "::set-output name=namespace::dev"
elif [[ "${{ inputs.github_environment }}" == "prod" ]]; then
echo "::set-output name=namespace::prod"
else
echo "Invalid environment specified: ${{ inputs.environment }}"
echo "Invalid environment specified: ${{ inputs.github_environment }}"
exit 1
fi
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ jobs:
deploy_to_prod:
name: Deploy to prod
uses: ./.github/workflows/deploy.yml
# needs:
# - deploy_to_dev # wait for the deploy_to_dev job to complete
needs:
- deploy_to_dev # wait for the deploy_to_dev job to complete
with:
github_environment: production
environment: prod
Expand Down

0 comments on commit 4d3f832

Please sign in to comment.