Update pipeline.yml

This commit is contained in:
Florian Kaiser 2022-03-25 11:26:10 +01:00 committed by GitHub
parent 5acd9ee60b
commit d5d5796c9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,51 +17,51 @@ pipeline:
from_secret: repo_api
dockerfile: api/Dockerfile
publish_frontend:
image: plugins/docker
settings:
username:
from_secret: username
password:
from_secret: password
registry:
from_secret: registry
repo:
from_secret: repo_frontend
dockerfile: frontend/Dockerfile
# publish_frontend:
# image: plugins/docker
# settings:
# username:
# from_secret: username
# password:
# from_secret: password
# registry:
# from_secret: registry
# repo:
# from_secret: repo_frontend
# dockerfile: frontend/Dockerfile
publish_bot:
image: plugins/docker
settings:
username:
from_secret: username
password:
from_secret: password
registry:
from_secret: registry
repo:
from_secret: repo_bot
dockerfile: telegram_bot/Dockerfile
# publish_bot:
# image: plugins/docker
# settings:
# username:
# from_secret: username
# password:
# from_secret: password
# registry:
# from_secret: registry
# repo:
# from_secret: repo_bot
# dockerfile: telegram_bot/Dockerfile
deploy:
image: appleboy/drone-ssh
network_mode: host
secrets:
- repo
target: REPO
- deploy_ip
target: IP
- deploy_net
target: NET
- deploy_name
target: NAME
- ssh_host
target: PLUGIN_HOST
- ssh_user
target: PLUGIN_USERNAME
- ssh_password
target: PLUGIN_PASSWORD
environment:
PLUGIN_SCRIPT=/opt/docker/TelegramAktienBot/deploy.sh
# deploy:
# image: appleboy/drone-ssh
# network_mode: host
# secrets:
# - repo
# target: REPO
# - deploy_ip
# target: IP
# - deploy_net
# target: NET
# - deploy_name
# target: NAME
# - ssh_host
# target: PLUGIN_HOST
# - ssh_user
# target: PLUGIN_USERNAME
# - ssh_password
# target: PLUGIN_PASSWORD
# environment:
# PLUGIN_SCRIPT=/opt/docker/TelegramAktienBot/deploy.sh
branches: main
# branches: main