janw.name/.gitlab-ci.yml
2024-08-06 19:26:41 +02:00

27 lines
534 B
YAML

stages:
- build
- deploy
build:
image: klakegg/hugo:alpine-ci
stage: build
script:
- hugo
artifacts:
paths:
- public
expire_in: 1 week
deployment:
stage: deploy
image: minio/mc:latest
only:
- main
before_script:
- mc alias set target $S3_HOST $S3_ACCESS_KEY $S3_SECRET_KEY
script:
<<<<<<< Updated upstream
- rsync -rv -e 'ssh -p 18775' --delete ./public/ www-user@janw.name:/var/www/janw.name/
=======
- mc mirror --overwrite public/ target/$S3_BUCKET
>>>>>>> Stashed changes