File tree Expand file tree Collapse file tree 3 files changed +37
-4
lines changed Expand file tree Collapse file tree 3 files changed +37
-4
lines changed Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ release :
5+ types : [released]
6+
7+ jobs :
8+ release_image :
9+ runs-on : ubuntu-latest
10+ permissions :
11+ packages : write
12+ contents : read
13+ steps :
14+ - name : Checkout
15+ uses : actions/checkout@v4
16+ - name : Set up Docker
17+ uses : docker/setup-qemu-action@v3
18+ - name : Set up Docker Buildx
19+ uses : docker/setup-buildx-action@v3
20+ - name : Login to GitHub Container Registry
21+ uses : docker/login-action@v2
22+ with :
23+ registry : ghcr.io
24+ username : ${{ github.actor }}
25+ password : ${{ secrets.GITHUB_TOKEN }}
26+ - name : Build and push
27+ uses : docker/build-push-action@v2
28+ with :
29+ context : .
30+ file : ./Dockerfile
31+ platforms : linux/amd64,linux/arm/v7
32+ push : true
33+ tags : ghcr.io/taskiq-python/taskiq-admin:latest,ghcr.io/taskiq-python/taskiq-admin:${{ github.ref_name }}
File renamed without changes.
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ class TaskiqAdminMiddleware(TaskiqMiddleware):
7575 return super ().post_execute(message, result)
7676```
7777
78- 2 ) Pull the image from DockerHub : ` docker pull artur10 /taskiq-admin:latest `
78+ 2 ) Pull the image from GitHub Container Registry : ` docker pull ghcr.io/taskiq-python /taskiq-admin:latest `
7979
80803 ) Replace ` TASKIQ_ADMIN_API_TOKEN ` with any secret enough string and run:
8181``` bash
@@ -84,7 +84,7 @@ docker run -d --rm \
8484 -v ./taskiq-admin-data/:/usr/database/ \
8585 -e TASKIQ_ADMIN_API_TOKEN=supersecret \
8686 --name taskiq-admin \
87- artur10 /taskiq-admin:latest
87+ ghcr.io/taskiq-python /taskiq-admin:latest
8888```
8989
90904 ) Go to ` http://localhost:3000/tasks `
@@ -115,7 +115,7 @@ compose.yml file example
115115 - taskiq_admin
116116
117117 taskiq_admin:
118- image: artur10 /taskiq-admin:latest
118+ image: ghcr.io/taskiq-python /taskiq-admin:latest
119119 container_name: taskiq_admin
120120 ports:
121121 - 3000:3000
@@ -129,4 +129,4 @@ compose.yml file example
129129### Development
1301301 ) Run ` pnpm install ` to install all dependencies
1311312 ) Run ` pnpm db:push ` to create the sqlite database if needed
132- 3 ) Run ` pnpm dev ` to run the project
132+ 3 ) Run ` pnpm dev ` to run the project
You can’t perform that action at this time.
0 commit comments