atomaka.com/.drone.yml
Andrew Tomaka 59678578f3
All checks were successful
continuous-integration/drone/push Build is passing
Fix auto deploy of unraid docker with hack script (#5)
Reviewed-on: #5
2023-04-16 13:19:10 -04:00

54 lines
1,017 B
YAML

name: test
kind: pipeline
steps:
- name: linting
image: docker.atomaka.com/mdformat
commands:
- mdformat --check _posts/
- 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:
- bash /boot/local/bin/update-atomaka.sh
trigger:
event: tag