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 d455f80 commit d6fef20
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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 }}' == 'dev' ]; then namespace='dev'; fi
if [ '${{ inputs.environment }}' == 'prod' ]; then namespace='prod'; fi
if [ '${{ inputs.environment }}' == 'development' ]; then namespace='development'; fi
if [ '${{ inputs.environment }}' == 'production' ]; then namespace='production'; fi
echo "namespace=${namespace}" | tee -a "$GITHUB_OUTPUT"
echo "values-file=values-${namespace}.yml" | tee -a "$GITHUB_OUTPUT"
8 changes: 4 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ jobs:
- name: Set Deployment namespace
id: set_namespace
run: |
if [[ "${{ inputs.environment }}" == "dev" ]]; then
echo "::set-output name=namespace::dev"
elif [[ "${{ inputs.environment }}" == "prod" ]]; then
echo "::set-output name=namespace::prod"
if [[ "${{ inputs.environment }}" == "production" ]]; then
echo "::set-output name=namespace::production"
elif [[ "${{ inputs.environment }}" == "production" ]]; then
echo "::set-output name=namespace::production"
else
echo "Invalid environment specified: ${{ inputs.environment }}"
exit 1
Expand Down

0 comments on commit d6fef20

Please sign in to comment.