janw.name/.gitlab-ci.yml

28 lines
534 B
YAML
Raw Normal View History

2023-09-30 15:15:35 +02:00
stages:
- build
- deploy
build:
image: klakegg/hugo:alpine-ci
stage: build
script:
- hugo
artifacts:
paths:
- public
expire_in: 1 week
deployment:
stage: deploy
2024-08-06 19:26:41 +02:00
image: minio/mc:latest
2023-09-30 15:15:35 +02:00
only:
- main
before_script:
2024-08-06 19:26:41 +02:00
- mc alias set target $S3_HOST $S3_ACCESS_KEY $S3_SECRET_KEY
2023-09-30 15:15:35 +02:00
script:
2024-08-06 19:26:41 +02:00
<<<<<<< Updated upstream
2024-01-16 09:14:01 +01:00
- rsync -rv -e 'ssh -p 18775' --delete ./public/ www-user@janw.name:/var/www/janw.name/
2024-08-06 19:26:41 +02:00
=======
- mc mirror --overwrite public/ target/$S3_BUCKET
>>>>>>> Stashed changes