Удалил лишние файлы

This commit is contained in:
Struchkov Mark 2023-03-06 01:45:42 +03:00
parent 6ce77c3930
commit 93ebd9e7ac
Signed by: upagge
GPG Key ID: D3018BE7BA428CA6
3 changed files with 0 additions and 73 deletions

View File

@ -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

View File

@ -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:

View File

@ -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: