Skip to content

Commit

Permalink
fixup! cb38522
Browse files Browse the repository at this point in the history
  • Loading branch information
shipperizer committed Jan 15, 2025
1 parent cb8cfc1 commit 4c9b0f5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/_deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ on:
required: true
CLIENT_SECRET:
required: true
JIMM_URL:
required: true

jobs:
deploy:
Expand All @@ -31,7 +33,7 @@ jobs:
echo "TF_VAR_client_id=${{ secrets.CLIENT_ID }}" >> $GITHUB_ENV
echo "TF_VAR_client_secret=${{ secrets.CLIENT_SECRET }}" >> $GITHUB_ENV
echo "TF_VAR_cloud=k8s-${{ inputs.model }}" >> $GITHUB_ENV
echo "TF_VAR_jimm_url=cd-jimm.stg.canonical.com:443" >> $GITHUB_ENV
echo "TF_VAR_jimm_url=${{ secrets.JIMM_URL }}" >> $GITHUB_ENV
- name: Import application into state
working-directory: ./deployment
run: |
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
secrets:
CLIENT_ID: ${{ secrets.JIMM_STG_CLIENT_ID }}
CLIENT_SECRET: ${{ secrets.JIMM_STG_CLIENT_SECRET }}
JIMM_URL: ${{ secrets.JIMM_URL }}
dev-deploy:
if: ${{ (inputs.model == 'dev') }}
uses: ./.github/workflows/_deploy.yaml
Expand All @@ -40,6 +41,7 @@ jobs:
secrets:
CLIENT_ID: ${{ secrets.JIMM_DEV_CLIENT_ID }}
CLIENT_SECRET: ${{ secrets.JIMM_DEV_CLIENT_SECRET }}
JIMM_URL: ${{ secrets.JIMM_URL }}
stg-deploy:
if: ${{ (inputs.model == 'stg') }}
uses: ./.github/workflows/_deploy.yaml
Expand All @@ -50,3 +52,4 @@ jobs:
secrets:
CLIENT_ID: ${{ secrets.JIMM_STG_CLIENT_ID }}
CLIENT_SECRET: ${{ secrets.JIMM_STG_CLIENT_SECRET }}
JIMM_URL: ${{ secrets.JIMM_URL }}

0 comments on commit 4c9b0f5

Please sign in to comment.