Add CI/CD via Drone #1
1 changed files with 20 additions and 27 deletions
11
.drone.yml
11
.drone.yml
|
@ -14,7 +14,7 @@ trigger:
|
||||||
exclude: master
|
exclude: master
|
||||||
event: push
|
event: push
|
||||||
|
|
||||||
---
|
---
|
||||||
name: deploy
|
name: deploy
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
|
|
||||||
|
@ -34,14 +34,6 @@ steps:
|
||||||
tags:
|
tags:
|
||||||
- latest
|
- latest
|
||||||
- ${DRONE_TAG}
|
- ${DRONE_TAG}
|
||||||
image: plugins/docker
|
|
||||||
settings:
|
|
||||||
pull_image: true
|
|
||||||
registry: docker.atomaka.com
|
|
||||||
repo: docker.atomaka.com/atomaka.com
|
|
||||||
tags:
|
|
||||||
- latest
|
|
||||||
- ${DRONE_TAG}
|
|
||||||
- name: deploy
|
- name: deploy
|
||||||
image: appleboy/drone-ssh
|
image: appleboy/drone-ssh
|
||||||
settings:
|
settings:
|
||||||
|
@ -54,5 +46,6 @@ steps:
|
||||||
script:
|
script:
|
||||||
- docker pull docker.atomaka.com/atomaka.com:latest
|
- docker pull docker.atomaka.com/atomaka.com:latest
|
||||||
- docker restart atomaka.com
|
- docker restart atomaka.com
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
event: tag
|
event: tag
|
||||||
|
|
Loading…
Reference in a new issue