Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
41 lines (38 sloc) 1.17 KB
platform: linux/arm64
clone:
default:
image: plugins/git:linux-arm64
depth: 50
pipeline:
publish:
image: plugins/docker:linux-arm64
repo: fredix/arm64v8-blog
tags: latest
dockerfile: Dockerfile.arm64
secrets: [ docker_username, docker_password ]
ssh:
image: fredix/arm64v8-alpine-drone-ssh
host: 192.168.254.1
port: 22
username: drone
volumes:
- /docker_volumes/drone_agent/drone.key:/root/ssh/drone.key
key_path: /root/ssh/drone.key
script:
# - "sudo docker service update --image fredix/arm64v8-blog hugo-arm64"
- "sudo docker stack deploy --compose-file=/root/scripts/swarm/hugo/hugo-arm64v8.yml hugo-arm64"
when:
status: success
telegram:
image: fredix/arm64v8-alpine-drone-telegram
token: $PLUGIN_TOKEN
to: $PLUGIN_TO
secrets: [ plugin_token, plugin_to ]
message: >
{{#success build.status}}
build {{build.number}} succeeded on {{repo.name}}. Good job {{build.author}} {{build.link}}
{{else}}
build {{build.number}} failed on {{repo.name}}. Fix me please {{build.author}} {{build.link}}
{{/success}}
when:
status: [ success, failure ]