Add CI/CD via Drone #1
1 changed files with 42 additions and 48 deletions
90
.drone.yml
90
.drone.yml
|
@ -1,47 +1,47 @@
|
||||||
# name: test
|
name: test
|
||||||
# kind: pipeline
|
kind: pipeline
|
||||||
|
|
||||||
# steps:
|
steps:
|
||||||
# - name: jekyll-build
|
- name: jekyll-build
|
||||||
# image: ruby
|
image: ruby
|
||||||
# commands:
|
commands:
|
||||||
# - gem install bundler
|
- gem install bundler
|
||||||
# - bundle install
|
- bundle install
|
||||||
# - bundle exec jekyll build
|
- bundle exec jekyll build
|
||||||
#
|
|
||||||
# trigger:
|
trigger:
|
||||||
# branch:
|
branch:
|
||||||
# exclude: master
|
exclude: master
|
||||||
# event: push
|
event: push
|
||||||
#
|
|
||||||
# ---
|
---
|
||||||
name: deploy
|
name: deploy
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# - name: jekyll-build
|
- name: jekyll-build
|
||||||
# image: ruby
|
image: ruby
|
||||||
# commands:
|
commands:
|
||||||
# - gem install bundler
|
- gem install bundler
|
||||||
# - bundle install
|
- bundle install
|
||||||
# - bundle exec jekyll build
|
- bundle exec jekyll build
|
||||||
# - name: docker-build
|
- name: docker-build
|
||||||
# image: plugins/docker
|
image: plugins/docker
|
||||||
# settings:
|
settings:
|
||||||
# pull_image: true
|
pull_image: true
|
||||||
# registry: docker.atomaka.com
|
registry: docker.atomaka.com
|
||||||
# repo: docker.atomaka.com/atomaka.com
|
repo: docker.atomaka.com/atomaka.com
|
||||||
# tags:
|
tags:
|
||||||
# - latest
|
- latest
|
||||||
# - ${DRONE_TAG}
|
- ${DRONE_TAG}
|
||||||
# image: plugins/docker
|
image: plugins/docker
|
||||||
# settings:
|
settings:
|
||||||
# pull_image: true
|
pull_image: true
|
||||||
# registry: docker.atomaka.com
|
registry: docker.atomaka.com
|
||||||
# repo: docker.atomaka.com/atomaka.com
|
repo: docker.atomaka.com/atomaka.com
|
||||||
# tags:
|
tags:
|
||||||
# - latest
|
- latest
|
||||||
# - ${DRONE_TAG}
|
- ${DRONE_TAG}
|
||||||
- name: deploy
|
- name: deploy
|
||||||
image: appleboy/drone-ssh
|
image: appleboy/drone-ssh
|
||||||
settings:
|
settings:
|
||||||
|
@ -52,13 +52,7 @@ steps:
|
||||||
key:
|
key:
|
||||||
from_secret: unraid_ssh_key
|
from_secret: unraid_ssh_key
|
||||||
script:
|
script:
|
||||||
- echo "Hello, world!"
|
- 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:
|
|
||||||
# event: tag
|
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
event: tag
|
||||||
exclude: master
|
|
||||||
event: push
|
|
||||||
|
|
Loading…
Reference in a new issue