Skip to content

Commit

Permalink
Merge pull request #31 from bcgov/fix-cloudbuild
Browse files Browse the repository at this point in the history
fix cloud build
  • Loading branch information
tronghieuvuong authored Nov 30, 2023
2 parents 3dc1403 + c240719 commit 80f0dc8
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions apps/application-status/devops/cloudbuild-pr.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
steps:
# install / setup ci
- name: node:20.5.1
entrypoint: bash
args:
- -c
- cp .env.example .env
- npm install -g pnpm && pnpm install && pnpm build
- name: node:20.6.1
script: |
#!/usr/bin/env bash
npm install --global pnpm
pnpm install
pnpm build
dir: 'apps/application-status'

#
Expand All @@ -15,7 +15,7 @@ steps:
- name: gcr.io/yfthig-dev/firebase
dir: "apps/application-status"
entrypoint: bash
args: ['-c', 'firebase hosting:channel:deploy --project=application-status-dev PR-$_PR_NUMBER > /workspace/firebase-deploy.txt']
args: ['-c', 'firebase hosting:channel:deploy --project=yfthig-dev PR-$_PR_NUMBER > /workspace/firebase-deploy.txt']

#
# Update the PR with the temporary URL
Expand All @@ -33,7 +33,7 @@ steps:
echo "this is the body:"
echo '{"body": "Temporary Url for review:'"$url"'"}'
curl -X POST \
https://api.github.com/repos/bcgov/ppr/issues/$_PR_NUMBER/comments \
https://api.github.com/repos/bcgov/sbc-producthub/issues/$_PR_NUMBER/comments \
--header "Authorization: Token $$TOKEN" \
--header "Accept: application/vnd.github.v3+json" \
--data-binary '{"body": "Temporary Url for review: '"$url"'"}'
Expand Down

0 comments on commit 80f0dc8

Please sign in to comment.