Skip to content

Commit

Permalink
Fix Workflow secret INFRA_PAT
Browse files Browse the repository at this point in the history
  • Loading branch information
dreglad committed Jun 30, 2022
1 parent 622cbcd commit f75e757
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/deployment-gcp-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ jobs:
CONTAINER_REGISTRY_USERNAME: ${{ secrets.AZURE_CR_USERNAME }}
CONTAINER_REGISTRY_PASSWORD: ${{ secrets.AZURE_CR_PASSWORD }}
GCP_CREDENTIALS: ${{ secrets.GCE_SA_KEY }}
INFRA_PAT: ${{ secrets.INFRA_PAT }}

1 change: 1 addition & 0 deletions .github/workflows/deployment-gcp-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ jobs:
CONTAINER_REGISTRY_USERNAME: ${{ secrets.AZURE_CR_USERNAME }}
CONTAINER_REGISTRY_PASSWORD: ${{ secrets.AZURE_CR_PASSWORD }}
GCP_CREDENTIALS: ${{ secrets.GCE_SA_KEY }}
INFRA_PAT: ${{ secrets.INFRA_PAT }}

1 change: 1 addition & 0 deletions .github/workflows/deployment-gcp-qa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ jobs:
CONTAINER_REGISTRY_USERNAME: ${{ secrets.AZURE_CR_USERNAME }}
CONTAINER_REGISTRY_PASSWORD: ${{ secrets.AZURE_CR_PASSWORD }}
GCP_CREDENTIALS: ${{ secrets.GCE_SA_KEY }}
INFRA_PAT: ${{ secrets.INFRA_PAT }}

1 change: 1 addition & 0 deletions .github/workflows/deployment-gcp-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ jobs:
CONTAINER_REGISTRY_USERNAME: ${{ secrets.AZURE_CR_USERNAME }}
CONTAINER_REGISTRY_PASSWORD: ${{ secrets.AZURE_CR_PASSWORD }}
GCP_CREDENTIALS: ${{ secrets.GCE_SA_KEY }}
INFRA_PAT: ${{ secrets.INFRA_PAT }}

7 changes: 4 additions & 3 deletions .github/workflows/deployment-gcp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ on:
required: true
GCP_CREDENTIALS:
required: true
INFRA_PAT:
required: true

jobs:
# -------------------------------------------------------------
Expand Down Expand Up @@ -123,10 +125,8 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3
with:
token: ${{ env.INFRA_PAT }}
token: ${{ secrets.INFRA_PAT }}
submodules: recursive
env:
INFRA_PAT: ${{ secrets.INFRA_PAT }}

- name: Set git metadata
id: git-meta
Expand Down Expand Up @@ -169,3 +169,4 @@ jobs:
--extra-vars postgres_host=${{ steps.database-host.outputs.ip_address }}
--user ansible
--verbose

0 comments on commit f75e757

Please sign in to comment.