Update pipeline.yml
This commit is contained in:
parent
49acdcaad0
commit
5d67cd1273
@ -1,5 +1,67 @@
|
|||||||
pipeline:
|
pipeline:
|
||||||
backend:
|
generate_tag:
|
||||||
image: golang
|
image: golang
|
||||||
commands:
|
commands:
|
||||||
- echo "Test123"
|
- echo -n "${DRONE_BRANCH//\//-}-${DRONE_COMMIT_SHA:0:8}, latest" > .tags
|
||||||
|
|
||||||
|
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
|
||||||
|
environment:
|
||||||
|
REPO:
|
||||||
|
from_secret: repo
|
||||||
|
IP:
|
||||||
|
from_secret: deploy_ip
|
||||||
|
NET:
|
||||||
|
from_secret: deploy_net
|
||||||
|
NAME:
|
||||||
|
from_secret: deploy_name
|
||||||
|
PLUGIN_HOST:
|
||||||
|
from_secret: ssh_host
|
||||||
|
PLUGIN_USERNAME:
|
||||||
|
from_secret: ssh_user
|
||||||
|
PLUGIN_PASSWORD:
|
||||||
|
from_secret: ssh_password
|
||||||
|
PLUGIN_SCRIPT: /opt/docker/TelegramAktienBot/deploy.sh
|
||||||
|
|
||||||
|
branches:
|
||||||
|
include: [ main ]
|
||||||
|
Loading…
Reference in New Issue
Block a user