atomaka.com/.drone.yml
Andrew Tomaka 9058b36e5a
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
continuous-integration/drone/tag Build is passing
Fixup
2023-02-18 14:28:28 -05:00

51 lines
961 B
YAML

name: test
kind: pipeline
steps:
- 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:
- docker pull docker.atomaka.com/atomaka.com:latest
- docker restart atomaka.com
trigger:
event: tag