2021-10-07 11:55:14 +02:00
|
|
|
build:
|
|
|
|
image: klakegg/hugo:ext-alpine-ci
|
|
|
|
stage: build
|
2021-10-07 11:57:17 +02:00
|
|
|
script:
|
|
|
|
- pwd
|
2021-10-07 11:59:32 +02:00
|
|
|
- hugo --minify
|
2021-10-07 11:55:14 +02:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- public
|
|
|
|
expire_in: 1 week
|
|
|
|
|
|
|
|
deploy_production:
|
|
|
|
type: deploy
|
|
|
|
image: ubuntu:latest
|
|
|
|
environment:
|
|
|
|
name: production
|
|
|
|
url: itsblue.de
|
|
|
|
script:
|
|
|
|
- apt update
|
|
|
|
- apt install -y openssh-client
|
|
|
|
- chmod 700 $DEPLOYMENT_SSH_KEY
|
2021-10-07 12:06:36 +02:00
|
|
|
- scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i $DEPLOYMENT_SSH_KEY -r ./public/* root@10.10.0.1:/opt/lamp/www/itsblue.de
|
2021-10-07 11:55:14 +02:00
|
|
|
#only:
|
|
|
|
# - master
|