atomaka.com/.drone.yml

67 lines
1.4 KiB
YAML
Raw Normal View History

2023-02-18 13:52:01 -05:00
# name: test
# kind: pipeline
2023-02-18 12:07:39 -05:00
2023-02-18 13:52:01 -05:00
# steps:
# - name: jekyll-build
# image: ruby
# commands:
# - gem install bundler
# - bundle install
# - bundle exec jekyll build
#
# trigger:
# branch:
# exclude: master
# event: push
#
# ---
2023-02-18 12:18:36 -05:00
name: deploy
2023-02-18 12:03:59 -05:00
kind: pipeline
steps:
2023-02-18 13:09:04 -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 13:52:01 -05:00
# image: plugins/docker
# settings:
# pull_image: true
# registry: docker.atomaka.com
# repo: docker.atomaka.com/atomaka.com
# tags:
# - latest
# - ${DRONE_TAG}
- name: test
image: ruby
environment:
SSH_KEY:
from_secret: docker_username
commands:
- echo $SSH_KEY
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:
2023-02-18 13:09:04 -05:00
- echo "Hello, world!"
# - 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