Skip to content

Commit

Permalink
Fix/fe deployment pipeline (Flagsmith#118)
Browse files Browse the repository at this point in the history
* Update packaging for production

* Add asset url env var

* Simplify FE deployment into single step
  • Loading branch information
matthewelwell authored Jun 14, 2021
1 parent 7465c16 commit 13577d3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/frontend-deploy-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,19 +53,19 @@ jobs:
with:
node-version: 14.x

- name: Setup npm environment
env:
ENV: prod
run: npm i && npm run env

- name: Setup Cloud SDK
uses: google-github-actions/setup-gcloud@v0.2.0
with:
project_id: bullet-train-front-end-prod
service_account_key: ${{ secrets.FRONTEND_GOOGLECLOUD_SERVICEACCOUNT_KEY }}

- name: Deploy to App Engine
env:
ASSET_URL: https://cdn.flagsmith.com
ENV: prod
run: |
npm i
npm run env
npm run dotenv
npm run bundledev
npm run bundle
gcloud app deploy --quiet

0 comments on commit 13577d3

Please sign in to comment.