Files
hudozka/.drone.yml
T
2018-05-23 01:33:10 +03:00

19 lines
553 B
YAML

pipeline:
build:
image: docker
commands:
- docker build -t tmshv/hudozka:latest -t tmshv/hudozka:build-${DRONE_BUILD_NUMBER} .
- docker save -o hudozka-docker_container${DRONE_BUILD_NUMBER}.tar tmshv/hudozka:build-${DRONE_BUILD_NUMBER}
when:
branches: [master]
volumes:
- /var/run/docker.sock:/var/run/docker.sock
scp:
image: appleboy/drone-scp
host: art.shlisselburg.org
username: master
target: ~/Hudozka
source: hudozka-docker_container${DRONE_BUILD_NUMBER}.tar
secrets: [scp_key]