Skip to content
Snippets Groups Projects
Commit 3b049639 authored by Dmytro Bogatov's avatar Dmytro Bogatov :two_hearts:
Browse files

Add cron and few more service.

parent b3ff9df2
Branches
No related tags found
No related merge requests found
Pipeline #67091 failed
......@@ -2,6 +2,7 @@
```!sh
# when changing config
sudo docker compose -f ./dist/compose.yaml --profile idle --profile all stop
./generate.py
sudo docker compose -f ./dist/compose.yaml --profile idle --profile all create --remove-orphans
# Run as daemon
......
......@@ -11,3 +11,5 @@ services:
volume:
from: schevastream.conf
to: appsettings.production.json
- name: legacy
image: registry.hub.docker.com/dbogatov/legacy:latest
#!/usr/bin/env bash
set -e
# Ensure that the CWD is set to script's location
cd "${0%/*}"
CWD=$(pwd)
# TELEGRAM_TOKEN
# BUCKET
source .secret.sh
../dockerhub-retention/touch-all-images.sh > /dev/null
CHAT_ID="-1002222279957"
MESSAGE="Cron on box ran successfully."
curl \
-s -X POST https://api.telegram.org/bot$TELEGRAM_TOKEN/sendMessage \
-d chat_id=$CHAT_ID \
-d disable_notification=true \
-d text="$MESSAGE" \
> /dev/null
echo "Cron done"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment