Удалил лишние файлы
This commit is contained in:
parent
6ce77c3930
commit
93ebd9e7ac
13
ci-notify.sh
13
ci-notify.sh
@ -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
|
|
@ -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:
|
|
@ -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:
|
|
Loading…
Reference in New Issue
Block a user