Skip to content

Commit a13f0f2

Browse files
author
Marcin Kwiatkowski
committed
build: updated deployment
1 parent 0167e7d commit a13f0f2

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.github/workflows/deploy-vue-storefront-cloud.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
- main
66
- develop
77
- release/*
8+
- build/dependencies
89

910
jobs:
1011
build:
@@ -86,7 +87,7 @@ jobs:
8687
exit 1
8788
fi
8889
- name: Deploy on demo-magento2-canary.europe-west1.gcp.storefrontcloud.io
89-
if: startsWith(github.ref, 'refs/heads/release')
90+
if: startsWith(github.ref, 'refs/heads/build/dependencies')
9091
run: |
9192
if curl -s -H 'X-User-Id: ${{ secrets.CLOUD_USERNAME }}' -H 'X-Api-Key: ${{ secrets.CLOUD_PASSWORD }}' -H 'Content-Type: application/json' -X POST -d '{
9293
"code":"demo-magento2-canary",

.vuestorefrontcloud/docker/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ RUN mv /var/www/packages/theme/nuxt.config.js /var/www/packages/theme/base.nuxt.
6969

7070
RUN yarn install
7171

72-
RUN npx yarn@1.19.0 workspace @vue-storefront/magento-theme add @sentry/tracing @nuxtjs/sentry @vsf-enterprise/redis-cache
72+
RUN yarn install && yarn build:api-client && yarn build:composables && yarn cache clean --all
7373

74-
RUN yarn build && yarn cache clean --all
74+
RUN rm -rf /var/www/node_modules && yarn install --prod && npx yarn@1.19.0 workspace @vue-storefront/magento-theme add @sentry/tracing @nuxtjs/sentry @vsf-enterprise/redis-cache && yarn buiLd:theme
7575

7676
COPY .vuestorefrontcloud/docker/vue-storefront.sh /usr/local/bin/
7777

packages/api-client/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@
2727
"@apollo/client": "^3.5.8",
2828
"graphql": "^16.3.0",
2929
"graphql-tag": "^2.12.6",
30-
"isomorphic-fetch": "^3.0.0"
30+
"isomorphic-fetch": "^3.0.0",
31+
"dotenv": "^15.0.0"
3132
},
3233
"devDependencies": {
3334
"@rollup/plugin-commonjs": "^21.0.1",
3435
"@rollup/plugin-graphql": "^1.1.0",
3536
"@rollup/plugin-json": "^4.1.0",
3637
"@types/isomorphic-fetch": "^0.0.35",
3738
"cross-fetch": "^3.1.5",
38-
"dotenv": "^15.0.0",
3939
"graphql-tools": "^8.2.0",
4040
"jest-transform-graphql": "^2.1.0",
4141
"msw": "^0.36.8",

0 commit comments

Comments
 (0)