diff --git a/app/devops/cloudbuild-pr.yaml b/app/devops/cloudbuild-pr.yaml index 4b038a61b..3c0c65799 100644 --- a/app/devops/cloudbuild-pr.yaml +++ b/app/devops/cloudbuild-pr.yaml @@ -1,18 +1,18 @@ steps: - # install / setup ci + # Install / setup CI - name: node:20.5.1 entrypoint: npm args: ['install'] + dir: app # <-- ADD THIS - # setup .env + # Setup .env - name: 'bash' script: | #!/usr/bin/env bash cp .env.example .env + dir: app # <-- ADD THIS - # # Generate the static site - # - name: node:20.5.1 entrypoint: npm env: @@ -21,38 +21,105 @@ steps: - 'NUXT_PROJECT_ID=$_NUXT_PROJECT_ID' - 'NUXT_APP_ID=$_NUXT_APP_ID' args: ['run', 'build'] + dir: app # <-- ADD THIS - # - # Deploy to firebase channel, using the PR # - # store log to /workspace to get the channel URL - # + # Deploy to Firebase channel using the PR # - name: gcr.io/yfthig-dev/firebase entrypoint: bash args: ['-c', 'firebase hosting:channel:deploy --project=yfthig-dev PR-$_PR_NUMBER > /workspace/firebase-deploy.txt'] + dir: app # <-- ADD THIS + + # Generate GitHub App installation token + - id: "Generate GitHub App token" + name: python:3.11 + entrypoint: bash + args: + - -c + - | + pip install pyjwt cryptography requests + python <