Add CI/CD via Drone #1
1 changed files with 31 additions and 16 deletions
47
.drone.yml
47
.drone.yml
|
@ -1,20 +1,20 @@
|
||||||
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
|
||||||
|
|
||||||
|
@ -34,6 +34,21 @@ 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: test
|
||||||
|
image: ruby
|
||||||
|
environment:
|
||||||
|
SSH_KEY:
|
||||||
|
from_secret: docker_username
|
||||||
|
commands:
|
||||||
|
- echo $SSH_KEY
|
||||||
- name: deploy
|
- name: deploy
|
||||||
image: plugins/ssh
|
image: plugins/ssh
|
||||||
settings:
|
settings:
|
||||||
|
|
Loading…
Reference in a new issue