2022-03-25 10:10:14 +00:00
|
|
|
pipeline:
|
2022-03-25 10:44:05 +00:00
|
|
|
generate_tag:
|
|
|
|
image: golang
|
|
|
|
commands:
|
2022-03-25 10:45:14 +00:00
|
|
|
- echo -n "${CI_COMMIT_BRANCH//\//-}-${CI_COMMIT_SHA:0:8}, latest" > .tags
|
2022-03-25 10:43:18 +00:00
|
|
|
|
2022-03-25 11:05:30 +00:00
|
|
|
build_api:
|
2022-03-25 10:43:18 +00:00
|
|
|
image: woodpeckerci/plugin-docker-buildx
|
2022-03-25 10:20:35 +00:00
|
|
|
settings:
|
2022-03-25 11:00:43 +00:00
|
|
|
repo:
|
|
|
|
from_secret: repo_api
|
2022-03-25 11:02:20 +00:00
|
|
|
username:
|
|
|
|
from_secret: username
|
|
|
|
password:
|
|
|
|
from_secret: password
|
|
|
|
registry:
|
|
|
|
from_secret: registry
|
2022-03-25 10:43:18 +00:00
|
|
|
dockerfile: api/Dockerfile
|
|
|
|
platforms: linux/amd64
|
2022-03-25 10:20:35 +00:00
|
|
|
|
2022-03-25 11:05:30 +00:00
|
|
|
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
|
|
|
|
|
2022-03-25 10:26:10 +00:00
|
|
|
# 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
|
2022-03-25 10:20:35 +00:00
|
|
|
|
2022-03-25 10:26:10 +00:00
|
|
|
# branches: main
|