Skip to content

Commit d7488f4

Browse files
authored
Merge pull request #1 from taskiq-python/feature/releases
Added releases workflow.
2 parents a71cd79 + 35a51e1 commit d7488f4

File tree

3 files changed

+37
-4
lines changed

3 files changed

+37
-4
lines changed

.github/workflows/release.yaml

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

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

8080
3) 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

9090
4) 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
130130
1) Run `pnpm install` to install all dependencies
131131
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

0 commit comments

Comments
 (0)