Skip to content

Commit

Permalink
ci: add backend url to build step (#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
lgerard-pass authored Feb 6, 2024
1 parent e24bc19 commit dcdcbdd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/on_dispatch_deploy_staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
environment: staging
workload_identity_provider_secret_name: passculture-metier-ehp/gcp_metier_ehp_workload_identity_provider
cms_url: https://siteinstit-cms.staging.passculture.team
backend_url: https://backend.staging.passculture.team/
secrets:
SECRETS_WORKLOAD_IDENTITY_PROVIDER: ${{ secrets.GCP_EHP_WORKLOAD_IDENTITY_PROVIDER }}
SECRETS_SERVICE_ACCOUNT: ${{ secrets.GCP_EHP_SERVICE_ACCOUNT }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/on_push_or_dispatch_deploy_testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
environment: testing
workload_identity_provider_secret_name: passculture-metier-ehp/gcp_metier_ehp_workload_identity_provider
cms_url: https://siteinstit-cms.testing.passculture.team
backend_url: https://backend.testing.passculture.team/
secrets:
SECRETS_WORKLOAD_IDENTITY_PROVIDER: ${{ secrets.GCP_EHP_WORKLOAD_IDENTITY_PROVIDER }}
SECRETS_SERVICE_ACCOUNT: ${{ secrets.GCP_EHP_SERVICE_ACCOUNT }}
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/reusable_public_site_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ on:
type: string
description: URL where Strapi is available to generate the static website
required: true
backend_url:
type: string
description: Pass culture backend URL to fetch playlists from
required: true
secrets:
SECRETS_WORKLOAD_IDENTITY_PROVIDER:
required: true
Expand Down Expand Up @@ -71,6 +75,7 @@ jobs:
working-directory: public_website
env:
STRAPI_API_URL: ${{ inputs.cms_url }}
BACKEND_API_URL: ${{ inputs.backend_url }}
ID_TOKEN: ${{ steps.auth.outputs.id_token }}
run: |
yarn install
Expand Down

0 comments on commit dcdcbdd

Please sign in to comment.