Add CI/CD via Drone #1
1 changed files with 18 additions and 17 deletions
35
.drone.yml
35
.drone.yml
|
@ -19,21 +19,21 @@ 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}
|
||||
# - 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}
|
||||
- name: deploy
|
||||
image: plugins/ssh
|
||||
settings:
|
||||
|
@ -44,7 +44,8 @@ steps:
|
|||
key:
|
||||
from_secret: unraid_ssh_key
|
||||
script:
|
||||
- docker pull docker.atomaka.com/atomaka.com:latest
|
||||
- docker restart atomaka.com
|
||||
- echo "Hello, world!"
|
||||
# - docker pull docker.atomaka.com/atomaka.com:latest
|
||||
# - docker restart atomaka.com
|
||||
trigger:
|
||||
event: tag
|
||||
|
|
Loading…
Reference in a new issue