1
0
mirror of https://github.com/kremalicious/portfolio.git synced 2024-12-22 17:23:22 +01:00
portfolio/.gitlab-ci.yml
2018-05-07 23:19:27 +02:00

29 lines
458 B
YAML

cache:
paths:
- node_modules/
stages:
- build
- deploy
build:
image: node:latest
stage: build
script:
- npm i -g gatsby-cli
- export PATH="$PATH:/usr/local/bin/gatsby"
- npm i
- npm test
- npm run build
artifacts:
paths:
- public
deploy:
image: garland/aws-cli-docker:latest
stage: deploy
script:
- aws s3 sync --delete --acl public-read ./public s3://matthiaskretschmann.com
only:
- master