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
|
||||
# kind: pipeline
|
||||
name: test
|
||||
kind: pipeline
|
||||
|
||||
# steps:
|
||||
# - name: jekyll-build
|
||||
# image: ruby
|
||||
# commands:
|
||||
# - gem install bundler
|
||||
# - bundle install
|
||||
# - bundle exec jekyll build
|
||||
#
|
||||
# trigger:
|
||||
# branch:
|
||||
# exclude: master
|
||||
# event: push
|
||||
#
|
||||
# ---
|
||||
steps:
|
||||
- name: jekyll-build
|
||||
image: ruby
|
||||
commands:
|
||||
- gem install bundler
|
||||
- bundle install
|
||||
- bundle exec jekyll build
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
exclude: master
|
||||
event: push
|
||||
|
||||
---
|
||||
name: deploy
|
||||
kind: pipeline
|
||||
|
||||
steps:
|
||||
# - name: jekyll-build
|
||||
# image: ruby
|
||||
# commands:
|
||||
# - gem install bundler
|
||||
# - bundle install
|
||||
# - bundle exec jekyll build
|
||||
# - name: docker-build
|
||||
# image: plugins/docker
|
||||
# settings:
|
||||
# pull_image: true
|
||||
# registry: docker.atomaka.com
|
||||
# repo: docker.atomaka.com/atomaka.com
|
||||
# tags:
|
||||
# - latest
|
||||
# - ${DRONE_TAG}
|
||||
# image: plugins/docker
|
||||
# settings:
|
||||
# pull_image: true
|
||||
# registry: docker.atomaka.com
|
||||
# repo: docker.atomaka.com/atomaka.com
|
||||
# tags:
|
||||
# - latest
|
||||
# - ${DRONE_TAG}
|
||||
- name: jekyll-build
|
||||
image: ruby
|
||||
commands:
|
||||
- gem install bundler
|
||||
- bundle install
|
||||
- bundle exec jekyll build
|
||||
- name: docker-build
|
||||
image: plugins/docker
|
||||
settings:
|
||||
pull_image: true
|
||||
registry: docker.atomaka.com
|
||||
repo: docker.atomaka.com/atomaka.com
|
||||
tags:
|
||||
- latest
|
||||
- ${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
|
||||
image: appleboy/drone-ssh
|
||||
settings:
|
||||
|
@ -52,13 +52,7 @@ steps:
|
|||
key:
|
||||
from_secret: unraid_ssh_key
|
||||
script:
|
||||
- echo "Hello, world!"
|
||||
# - docker pull docker.atomaka.com/atomaka.com:latest
|
||||
# - docker restart atomaka.com
|
||||
# trigger:
|
||||
# event: tag
|
||||
|
||||
- docker pull docker.atomaka.com/atomaka.com:latest
|
||||
- docker restart atomaka.com
|
||||
trigger:
|
||||
branch:
|
||||
exclude: master
|
||||
event: push
|
||||
event: tag
|
||||
|
|
Loading…
Reference in a new issue