portfolio/.gitlab-ci.yml

30 lines
472 B
YAML

cache:
paths:
- node_modules/
- public/
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