35 lines
824 B
YAML
35 lines
824 B
YAML
kind: pipeline
|
|
name: default
|
|
|
|
steps:
|
|
- name: build-container
|
|
image: plugins/docker
|
|
environment:
|
|
CONFIG_JSON:
|
|
from_secret: config_json
|
|
settings:
|
|
repo: git.saintnet.tech/stryan/saintnet_stickers
|
|
registry: git.saintnet.tech
|
|
password:
|
|
from_secret: build_pass
|
|
username:
|
|
from_secret: build_username
|
|
dockerfile: Containerfile
|
|
tags: latest
|
|
secrets_from_env:
|
|
- pack_config=CONFIG_JSON
|
|
- name: deploy
|
|
image: appleboy/drone-ssh
|
|
settings:
|
|
host: stryan.net
|
|
username:
|
|
from_secret: deploy_username
|
|
key:
|
|
from_secret: deploy_key
|
|
script:
|
|
- sudo podman pull git.saintnet.tech/stryan/saintnet_stickers:latest
|
|
- sudo systemctl restart stryan_net
|
|
when:
|
|
branch:
|
|
- master
|