65 lines
1.4 KiB
YAML
65 lines
1.4 KiB
YAML
pipeline:
|
|
# generate_tag:
|
|
# image: golang
|
|
# commands:
|
|
# - echo -n "${DRONE_BRANCH//\//-}-${DRONE_COMMIT_SHA:0:8}, latest" > .tags
|
|
# - ls api/
|
|
|
|
|
|
publish_api:
|
|
image: woodpeckerci/plugin-docker-buildx
|
|
settings:
|
|
repo:
|
|
from_secret: repo_api
|
|
dockerfile: api/Dockerfile
|
|
platforms: linux/amd64
|
|
|
|
# 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
|
|
# 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
|