Skip to content

Commit 0d1c06f

Browse files
committed
build image
1 parent d145260 commit 0d1c06f

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

.github/workflows/docker.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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

docker-compose.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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:

0 commit comments

Comments
 (0)