atomaka.com/.drone.yml

52 lines
961 B
YAML
Raw Normal View History

2023-02-18 14:22:15 -05:00
name: test
kind: pipeline
steps:
- name: jekyll-build
image: ruby
commands:
2023-02-18 14:28:28 -05:00
- gem install bundler
- bundle install
- bundle exec jekyll build
2023-02-18 14:22:15 -05:00
trigger:
branch:
exclude: master
event: push
2023-02-18 12:07:39 -05:00
2023-02-18 14:28:28 -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 14:28:28 -05:00
- 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}
2023-02-18 12:56:25 -05:00
- name: deploy
2023-02-18 14:19:38 -05:00
image: appleboy/drone-ssh
2023-02-18 12:56:25 -05:00
settings:
host:
from_secret: unraid_host
username:
from_secret: unraid_username
key:
from_secret: unraid_ssh_key
script:
2023-02-18 14:22:15 -05:00
- docker pull docker.atomaka.com/atomaka.com:latest
- docker restart atomaka.com
2023-02-18 14:28:28 -05:00
2023-02-18 12:03:59 -05:00
trigger:
2023-02-18 14:22:15 -05:00
event: tag