add gitlab-pages script
This commit is contained in:
parent
cba66ff133
commit
b4ed28e620
1 changed files with 32 additions and 0 deletions
|
@ -24,3 +24,35 @@ docker-build:
|
|||
- if: $CI_COMMIT_BRANCH
|
||||
exists:
|
||||
- Dockerfile
|
||||
|
||||
pages-build:node:
|
||||
image: node:latest
|
||||
stage: build
|
||||
script:
|
||||
- mkdir /build/public/js
|
||||
- mkdir /build/public/css
|
||||
- yarn install
|
||||
- yarn compile
|
||||
artifacts:
|
||||
paths: public/
|
||||
|
||||
pages-build:php:
|
||||
image: compose:latest
|
||||
stage: build
|
||||
script:
|
||||
- cd public/API
|
||||
- composer install
|
||||
artifacts:
|
||||
paths: public/
|
||||
|
||||
pages:
|
||||
image: busybox
|
||||
stage: deploy
|
||||
script:
|
||||
- echo "Nothing to do"
|
||||
dependencies:
|
||||
- pages-build:node
|
||||
- pages-build:php
|
||||
artifacts:
|
||||
paths:
|
||||
- public
|
||||
|
|
Loading…
Reference in a new issue