Switched CI to building the Docker image
continuous-integration/drone the build was successful
Details
continuous-integration/drone the build was successful
Details
parent
b1d1716fbd
commit
31ee1dae7f
|
@ -1,17 +1,27 @@
|
||||||
pipeline:
|
pipeline:
|
||||||
build:
|
# build:
|
||||||
image: alpine:3
|
# image: alpine:3
|
||||||
commands:
|
# commands:
|
||||||
- apk update
|
# - apk update
|
||||||
- apk add --no-cache hugo
|
# - apk add --no-cache hugo
|
||||||
- hugo --minify
|
# - hugo --minify
|
||||||
|
|
||||||
deploy:
|
# deploy:
|
||||||
image: alpine:3
|
# image: alpine:3
|
||||||
commands:
|
# commands:
|
||||||
- apk update
|
# - apk update
|
||||||
- apk add --no-cache rsync openssh-client
|
# - apk add --no-cache rsync openssh-client
|
||||||
- eval $(ssh-agent)
|
# - eval $(ssh-agent)
|
||||||
- echo "$DEPLOY_KEY" | ssh-add -
|
# - echo "$DEPLOY_KEY" | ssh-add -
|
||||||
- rsync -e "ssh -p $DEPLOY_PORT -o 'StrictHostKeyChecking=no'" -az --delete public/ "$DEPLOY_DEST"
|
# - rsync -e "ssh -p $DEPLOY_PORT -o 'StrictHostKeyChecking=no'" -az --delete public/ "$DEPLOY_DEST"
|
||||||
secrets: [ deploy_key, deploy_port, 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
|
||||||
|
|
Reference in New Issue