File tree Expand file tree Collapse file tree 2 files changed +39
-0
lines changed
Expand file tree Collapse file tree 2 files changed +39
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Docker Build and Push
2+
3+ on :
4+ push :
5+ branches : ["main"]
6+
7+ jobs :
8+ build-and-push :
9+ runs-on : ubuntu-latest
10+ environment : deploy
11+ steps :
12+ - name : Checkout repository
13+ uses : actions/checkout@v3
14+
15+ - name : Log in to Docker Hub
16+ uses : docker/login-action@v2
17+ with :
18+ username : ${{ secrets.DOCKERHUB_USERNAME }}
19+ password : ${{ secrets.DOCKERHUB_TOKEN }}
20+
21+ - name : Build and push Docker image
22+ uses : docker/build-push-action@v4
23+ with :
24+ context : .
25+ push : true
26+ tags : hormold/cursor-telegram-bot:latest
Original file line number Diff line number Diff line change 1+ version : " 3"
2+ services :
3+ app :
4+ image : hormold/cursor-telegram-bot:latest
5+ labels :
6+ - " com.centurylinklabs.watchtower.enable=true"
7+ env_file : .env
8+ environment :
9+ - DB_URL=sqlite://sqlite-data/bot.db
10+
11+
12+ volumes :
13+ sqlite-data :
You can’t perform that action at this time.
0 commit comments