70 lines
1.6 KiB
YAML
70 lines
1.6 KiB
YAML
pipeline:
|
|
generate_tag:
|
|
image: golang
|
|
commands:
|
|
- echo -n "${CI_COMMIT_BRANCH//\//-}-${CI_COMMIT_SHA:0:8}, latest" > .tags
|
|
|
|
build_api:
|
|
image: woodpeckerci/plugin-docker-buildx
|
|
settings:
|
|
repo:
|
|
from_secret: repo_api
|
|
username:
|
|
from_secret: username
|
|
password:
|
|
from_secret: password
|
|
registry:
|
|
from_secret: registry
|
|
dockerfile: api/Dockerfile
|
|
platforms: linux/amd64
|
|
|
|
build_bot:
|
|
image: woodpeckerci/plugin-docker-buildx
|
|
settings:
|
|
repo:
|
|
from_secret: repo_bot
|
|
username:
|
|
from_secret: username
|
|
password:
|
|
from_secret: password
|
|
registry:
|
|
from_secret: registry
|
|
dockerfile: telegram_bot/Dockerfile
|
|
platforms: linux/amd64
|
|
|
|
build_frontend:
|
|
image: woodpeckerci/plugin-docker-buildx
|
|
settings:
|
|
repo:
|
|
from_secret: repo_frontend
|
|
username:
|
|
from_secret: username
|
|
password:
|
|
from_secret: password
|
|
registry:
|
|
from_secret: registry
|
|
dockerfile: frontend/Dockerfile
|
|
platforms: linux/amd64
|
|
|
|
deploy:
|
|
image: appleboy/drone-ssh
|
|
network_mode: host
|
|
settings:
|
|
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: main
|