This repository has been archived on 2021-08-14. You can view files and clone it, but cannot push or open issues/pull-requests.
2021-05-03 18:40:47 +02:00
|
|
|
pipeline:
|
2021-07-09 14:43:35 +02:00
|
|
|
# build:
|
|
|
|
# image: alpine:3
|
|
|
|
# commands:
|
|
|
|
# - apk update
|
|
|
|
# - apk add --no-cache hugo
|
|
|
|
# - hugo --minify
|
2021-05-03 18:40:47 +02:00
|
|
|
|
2021-07-09 14:43:35 +02:00
|
|
|
# deploy:
|
|
|
|
# image: alpine:3
|
|
|
|
# commands:
|
|
|
|
# - apk update
|
|
|
|
# - apk add --no-cache rsync openssh-client
|
|
|
|
# - eval $(ssh-agent)
|
|
|
|
# - echo "$DEPLOY_KEY" | ssh-add -
|
|
|
|
# - rsync -e "ssh -p $DEPLOY_PORT -o 'StrictHostKeyChecking=no'" -az --delete public/ "$DEPLOY_DEST"
|
|
|
|
# secrets: [ deploy_key, deploy_port, deploy_dest ]
|
|
|
|
publish:
|
|
|
|
image: plugins/docker
|
|
|
|
repo: chewingbever/blog
|
|
|
|
tag: [ latest ]
|
|
|
|
secrets:
|
|
|
|
- docker_username
|
|
|
|
- docker_password
|
|
|
|
when:
|
|
|
|
branch: master
|
|
|
|
event: push
|