From 84c945b3d8cf4845b7123256d85c718ca3e0637b Mon Sep 17 00:00:00 2001 From: Florian Kaiser <44125287+H4CK3R-01@users.noreply.github.com> Date: Fri, 25 Mar 2022 12:21:26 +0100 Subject: [PATCH] Update pipeline.yml --- .woodpecker/pipeline.yml | 87 ++++++++++++++++++++-------------------- 1 file changed, 43 insertions(+), 44 deletions(-) diff --git a/.woodpecker/pipeline.yml b/.woodpecker/pipeline.yml index 335373f..84edc74 100644 --- a/.woodpecker/pipeline.yml +++ b/.woodpecker/pipeline.yml @@ -1,50 +1,50 @@ pipeline: -# generate_tag: -# image: golang -# commands: -# - echo -n "${CI_COMMIT_BRANCH//\//-}-${CI_COMMIT_SHA:0:8}, latest" > .tags + 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_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_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 + 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 @@ -58,6 +58,5 @@ pipeline: from_secret: ssh_password script: - /opt/docker/TelegramAktienBot/deploy.sh - - ls branches: main