Switched CI to building the Docker image
continuous-integration/drone the build was successful Details

master
Jef Roosens 2021-07-09 14:43:35 +02:00
parent b1d1716fbd
commit 31ee1dae7f
Signed by: Jef Roosens
GPG Key ID: B580B976584B5F30
1 changed files with 25 additions and 15 deletions

View File

@ -1,17 +1,27 @@
pipeline:
build:
image: alpine:3
commands:
- apk update
- apk add --no-cache hugo
- hugo --minify
# build:
# image: alpine:3
# commands:
# - apk update
# - apk add --no-cache hugo
# - hugo --minify
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 ]
# 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