TelegramAktienBot/.woodpecker/pipeline.yml

68 lines
1.4 KiB
YAML
Raw Normal View History

2022-03-25 10:10:14 +00:00
pipeline:
2022-03-25 10:16:14 +00:00
generate_tag:
2022-03-25 10:10:14 +00:00
image: golang
commands:
2022-03-25 10:16:14 +00:00
- echo -n "${DRONE_BRANCH//\//-}-${DRONE_COMMIT_SHA:0:8}, latest" > .tags
2022-03-25 10:20:35 +00:00
publish_api:
image: plugins/docker
settings:
username:
from_secret: username
password:
from_secret: password
registry:
from_secret: registry
repo:
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_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
2022-03-25 10:25:16 +00:00
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
2022-03-25 10:20:35 +00:00
environment:
2022-03-25 10:25:16 +00:00
PLUGIN_SCRIPT=/opt/docker/TelegramAktienBot/deploy.sh
2022-03-25 10:20:35 +00:00
branches: main