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
|
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}
|
||||||
- name: deploy
|
- name: deploy
|
||||||
image: plugins/ssh
|
image: plugins/ssh
|
||||||
settings:
|
settings:
|
||||||
|
@ -44,7 +44,8 @@ steps:
|
||||||
key:
|
key:
|
||||||
from_secret: unraid_ssh_key
|
from_secret: unraid_ssh_key
|
||||||
script:
|
script:
|
||||||
- docker pull docker.atomaka.com/atomaka.com:latest
|
- echo "Hello, world!"
|
||||||
- docker restart atomaka.com
|
# - docker pull docker.atomaka.com/atomaka.com:latest
|
||||||
|
# - docker restart atomaka.com
|
||||||
trigger:
|
trigger:
|
||||||
event: tag
|
event: tag
|
||||||
|
|
Loading…
Reference in a new issue