recettes/.gitlab-ci.yml
2022-04-10 22:04:34 +02:00

32 lines
684 B
YAML

variables:
NETLIFY_SITE: recettes-4f3ee
HUGO_ENV: production
gohugo-build:
image: klakegg/hugo:0.95.0-debian
script:
- hugo
artifacts:
expire_in: 1 week
paths:
- public
deploy-branch:
image: "node:17"
stage: deploy
before_script:
- npm install -g netlify-cli --unsafe-perm=true
script:
- netlify deploy --site $NETLIFY_SITE --auth $NETLIFY_AUTH_TOKEN --dir public
except:
- /^master$/
deploys3-master:
image: "node:17"
stage: deploy
before_script:
- npm install -g netlify-cli --unsafe-perm=true
script:
- netlify deploy --site $NETLIFY_SITE --auth $NETLIFY_AUTH_TOKEN --dir public --prod
only:
- /^master$/