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):
75
75
return super ().post_execute(message, result)
76
76
```
77
77
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 `
79
79
80
80
3 ) Replace ` TASKIQ_ADMIN_API_TOKEN ` with any secret enough string and run:
81
81
``` bash
@@ -84,7 +84,7 @@ docker run -d --rm \
84
84
-v ./taskiq-admin-data/:/usr/database/ \
85
85
-e TASKIQ_ADMIN_API_TOKEN=supersecret \
86
86
--name taskiq-admin \
87
- artur10 /taskiq-admin:latest
87
+ ghcr.io/taskiq-python /taskiq-admin:latest
88
88
```
89
89
90
90
4 ) Go to ` http://localhost:3000/tasks `
@@ -115,7 +115,7 @@ compose.yml file example
115
115
- taskiq_admin
116
116
117
117
taskiq_admin:
118
- image: artur10 /taskiq-admin:latest
118
+ image: ghcr.io/taskiq-python /taskiq-admin:latest
119
119
container_name: taskiq_admin
120
120
ports:
121
121
- 3000:3000
@@ -129,4 +129,4 @@ compose.yml file example
129
129
### Development
130
130
1 ) Run ` pnpm install ` to install all dependencies
131
131
2 ) 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