Skip to content

Commit ba71d84

Browse files
committed
chore(cd): add docker-hub-publish
1 parent 3857e2f commit ba71d84

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/cd.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,16 @@ jobs:
4747
run: uv publish
4848
env:
4949
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_TOKEN }}
50+
51+
docker-hub-publish:
52+
environment:
53+
name: docker hub
54+
url: https://hub.docker.com/r/n255/tgdb
55+
56+
steps:
57+
- uses: actions/checkout@v3
58+
- name: login
59+
run: echo ${{ secrets.DOCKER_PAT }} | docker login -u ${{ vars.DOCKER_USER }} --password-stdin
60+
61+
- name: build and publish
62+
run: docker build . -f deploy/slim/Dockerfile -t ${{ vars.DOCKER_NAMESPACE }}/${{ vars.DOCKER_REPO }}:${{ github.event.release.tag_name }}-slim --push

0 commit comments

Comments
 (0)