add gitlab-pages script

This commit is contained in:
Jonas Leder 2021-08-04 09:10:18 +02:00
parent cba66ff133
commit b4ed28e620

View file

@ -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