2023-02-18 15:07:10 -05:00
|
|
|
name: test
|
|
|
|
kind: pipeline
|
|
|
|
|
|
|
|
steps:
|
2023-02-18 19:24:52 -05:00
|
|
|
- name: linting
|
2023-02-20 20:55:55 -05:00
|
|
|
image: docker.atomaka.com/mdformat
|
2023-02-18 19:24:52 -05:00
|
|
|
commands:
|
|
|
|
- mdformat --check _posts/
|
2023-02-18 15:07:10 -05:00
|
|
|
- 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}
|
|
|
|
- name: deploy
|
|
|
|
image: appleboy/drone-ssh
|
|
|
|
settings:
|
|
|
|
host:
|
|
|
|
from_secret: unraid_host
|
|
|
|
username:
|
|
|
|
from_secret: unraid_username
|
|
|
|
key:
|
|
|
|
from_secret: unraid_ssh_key
|
|
|
|
script:
|
2023-04-16 13:19:10 -04:00
|
|
|
- bash /boot/local/bin/update-atomaka.sh
|
2023-02-18 15:07:10 -05:00
|
|
|
|
|
|
|
trigger:
|
|
|
|
event: tag
|