mirror of
https://github.com/kremalicious/portfolio.git
synced 2024-12-22 17:23:22 +01:00
30 lines
472 B
YAML
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
|