2023-02-18 12:03:59 -05:00
|
|
|
name: test
|
2023-02-18 00:56:43 -05:00
|
|
|
kind: pipeline
|
|
|
|
|
|
|
|
steps:
|
2023-02-18 12:13:32 -05:00
|
|
|
- name: jekyll-build
|
2023-02-18 00:19:17 -05:00
|
|
|
image: ruby
|
|
|
|
commands:
|
|
|
|
- gem install bundler
|
|
|
|
- bundle install
|
|
|
|
- bundle exec jekyll build
|
2023-02-18 12:07:39 -05:00
|
|
|
|
|
|
|
trigger:
|
|
|
|
branch:
|
|
|
|
exclude: master
|
|
|
|
event: push
|
2023-02-18 12:18:36 -05:00
|
|
|
|
2023-02-18 12:03:59 -05:00
|
|
|
---
|
2023-02-18 12:18:36 -05:00
|
|
|
name: deploy
|
2023-02-18 12:03:59 -05:00
|
|
|
kind: pipeline
|
|
|
|
|
|
|
|
steps:
|
2023-02-18 12:13:32 -05:00
|
|
|
- name: jekyll-build
|
|
|
|
image: ruby
|
|
|
|
commands:
|
|
|
|
- gem install bundler
|
|
|
|
- bundle install
|
|
|
|
- bundle exec jekyll build
|
|
|
|
- name: docker-build
|
2023-02-17 23:39:05 -05:00
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
2023-02-18 00:12:30 -05:00
|
|
|
pull_image: true
|
2023-02-17 23:39:05 -05:00
|
|
|
registry: docker.atomaka.com
|
2023-02-18 00:00:05 -05:00
|
|
|
repo: docker.atomaka.com/atomaka.com
|
2023-02-18 12:18:36 -05:00
|
|
|
tags:
|
|
|
|
- latest
|
|
|
|
- ${DRONE_TAG}
|
2023-02-18 12:56:25 -05:00
|
|
|
- name: deploy
|
|
|
|
image: plugins/ssh
|
|
|
|
settings:
|
|
|
|
host:
|
|
|
|
from_secret: unraid_host
|
|
|
|
username:
|
|
|
|
from_secret: unraid_username
|
|
|
|
key:
|
|
|
|
from_secret: unraid_ssh_key
|
|
|
|
script:
|
|
|
|
- docker pull docker.atomaka.com/atomaka.com:latest
|
|
|
|
- docker restart atomaka.com
|
2023-02-18 12:03:59 -05:00
|
|
|
trigger:
|
2023-02-18 12:18:36 -05:00
|
|
|
event: tag
|