From 93ebd9e7ace7d9e3904e746c5dc8ec8df26d7b41 Mon Sep 17 00:00:00 2001 From: Struchkov Mark Date: Mon, 6 Mar 2023 01:45:42 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B4=D0=B0=D0=BB=D0=B8=D0=BB=20=D0=BB?= =?UTF-8?q?=D0=B8=D1=88=D0=BD=D0=B8=D0=B5=20=D1=84=D0=B0=D0=B9=D0=BB=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ci-notify.sh | 13 ------------- docker-compose-dev.yml | 29 ----------------------------- docker-compose.yml | 31 ------------------------------- 3 files changed, 73 deletions(-) delete mode 100644 ci-notify.sh delete mode 100644 docker-compose-dev.yml delete mode 100644 docker-compose.yml diff --git a/ci-notify.sh b/ci-notify.sh deleted file mode 100644 index 4d7f090..0000000 --- a/ci-notify.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash - -if [ "$DRONE_BUILD_STATUS" = "success" ]; then - DEPLOY_STATUS="✅" -else - DEPLOY_STATUS="❌" -fi - -TIME="10" -URL="https://api.telegram.org/bot$NOTIFY_TELEGRAM_BOT_TOKEN/sendMessage" -TEXT="Deploy status: $DEPLOY_STATUS%0A-- -- -- -- --%0ABranch:+$DRONE_TARGET_BRANCH%0ATag:+$DRONE_TAG%0AProject:+$DRONE_REPO_NAME" - -curl -s --max-time $TIME -d "chat_id=$NOTIFY_TELEGRAM_CHAT_ID&disable_web_page_preview=1&text=$TEXT" $URL >/dev/null diff --git a/docker-compose-dev.yml b/docker-compose-dev.yml deleted file mode 100644 index f28cabc..0000000 --- a/docker-compose-dev.yml +++ /dev/null @@ -1,29 +0,0 @@ -version: '3.3' - -services: - - database: - image: postgres:15.1-alpine - environment: - POSTGRES_DB: "gitlab_bot" - POSTGRES_USER: "postgres" - POSTGRES_PASSWORD: ${DATASOURCE_PASSWORD} - volumes: - - database:/var/lib/postgresql/data/ - - gitlab-bot: - build: . - depends_on: - - database - environment: - TELEGRAM_BOT_TOKEN: ${TELEGRAM_BOT_TOKEN} - TELEGRAM_BOT_USERNAME: ${TELEGRAM_BOT_USERNAME} - GITLAB_PERSONAL_TOKEN: ${GITLAB_PERSONAL_TOKEN} - TELEGRAM_PERSON_ID: ${TELEGRAM_PERSON_ID} - GITLAB_URL: ${GITLAB_URL} - DATASOURCE_URL: "jdbc:postgresql://database:5432/gitlab_bot" - DATASOURCE_USERNAME: "postgres" - DATASOURCE_PASSWORD: ${DATASOURCE_PASSWORD} - -volumes: - database: \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 100644 index 9562991..0000000 --- a/docker-compose.yml +++ /dev/null @@ -1,31 +0,0 @@ -version: '3.3' - -services: - - database: - image: postgres:15.1-alpine - restart: always - environment: - POSTGRES_DB: "gitlab_bot" - POSTGRES_USER: "postgres" - POSTGRES_PASSWORD: ${DATASOURCE_PASSWORD} - volumes: - - database:/var/lib/postgresql/data/ - - gitlab-bot: - image: upagge/gitlab-telegram-notify:latest - restart: always - depends_on: - - database - environment: - TELEGRAM_BOT_TOKEN: ${TELEGRAM_BOT_TOKEN} - TELEGRAM_BOT_USERNAME: ${TELEGRAM_BOT_USERNAME} - GITLAB_PERSONAL_TOKEN: ${GITLAB_PERSONAL_TOKEN} - TELEGRAM_PERSON_ID: ${TELEGRAM_PERSON_ID} - GITLAB_URL: ${GITLAB_URL} - DATASOURCE_URL: "jdbc:postgresql://database:5432/gitlab_bot" - DATASOURCE_USERNAME: "postgres" - DATASOURCE_PASSWORD: ${DATASOURCE_PASSWORD} - -volumes: - database: \ No newline at end of file