Attempt to add a dev build
This commit is contained in:
parent
481571dbfe
commit
a255628d6f
1 changed files with 14 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
pages: # the job must be named pages
|
build:
|
||||||
image: node:latest
|
image: node:latest
|
||||||
stage: deploy
|
stage: build
|
||||||
before_script:
|
before_script:
|
||||||
# - ./update_version.sh
|
# - ./update_version.sh
|
||||||
- echo $CI_COMMIT_TIMESTAMP $CI_COMMIT_SHORT_SHA > src/assets/version.txt
|
- echo $CI_COMMIT_TIMESTAMP $CI_COMMIT_SHORT_SHA > src/assets/version.txt
|
||||||
|
|
@ -11,6 +11,10 @@ pages: # the job must be named pages
|
||||||
- npm run build
|
- npm run build
|
||||||
- mv public public-vue # GitLab Pages hooks on the public folder
|
- mv public public-vue # GitLab Pages hooks on the public folder
|
||||||
- mv dist public # rename the dist folder (result of npm run build)
|
- mv dist public # rename the dist folder (result of npm run build)
|
||||||
|
|
||||||
|
pages: # the job must be named pages
|
||||||
|
image: node:latest
|
||||||
|
stage: deploy
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- public # artifact path must be /public for GitLab Pages to pick it up
|
- public # artifact path must be /public for GitLab Pages to pick it up
|
||||||
|
|
@ -24,3 +28,11 @@ s3-deploy:
|
||||||
- aws s3 sync ./public s3://gp-web-prod-shared-weblite-bucket --delete --only-show-errors
|
- aws s3 sync ./public s3://gp-web-prod-shared-weblite-bucket --delete --only-show-errors
|
||||||
only:
|
only:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
|
s3-deploy-dev:
|
||||||
|
stage: .post
|
||||||
|
image: registry.gitlab.com/gitlab-org/cloud-deploy/aws-base:latest
|
||||||
|
script:
|
||||||
|
- aws s3 sync ./public s3://gp-web-prod-shared-weblite-bucket-dev --delete --only-show-errors
|
||||||
|
only:
|
||||||
|
- dev
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue