Skip to content

Commit 49f8319

Browse files
author
rootware
committed
added build and push docker image step
1 parent 1b5d613 commit 49f8319

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

.github/workflows/cd.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ jobs:
3333
- name: Publish Package to TestPyPi
3434
run: |
3535
# Test that package publishing is going to work with the testpypi
36-
# instance first before trying to package plugins.
3736
poetry config pypi-token.testpypi ${{ secrets.TEST_PYPI_TOKEN }}
3837
poetry config repositories.testpypi https://test.pypi.org/legacy/
3938
poetry publish --repository testpypi
@@ -44,6 +43,15 @@ jobs:
4443
poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}
4544
poetry publish
4645
46+
- name: Build and push Docker Image
47+
uses: mr-smithers-excellent/docker-build-push@v5
48+
with:
49+
image: brootware/pyredactkit
50+
registry: hub.docker.com
51+
dockerfile: Dockerfile
52+
username: ${{ secrets.DOCKER_USERNAME }}
53+
password: ${{ secrets.DOCKER_PASSWORD }}
54+
4755
- name: Extract Release Body
4856
run: |
4957
# Grab tag name without the `v`

.github/workflows/ci.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,3 @@ jobs:
4646
env:
4747
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
4848
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
49-
50-
# - name: Build and push Docker Image
51-
# uses: mr-smithers-excellent/docker-build-push@v5
52-
# with:
53-
# image: brootware/pyredactkit
54-
# registry: docker.io
55-
# username: ${{ secrets.DOCKER_USERNAME }}
56-
# password: ${{ secrets.DOCKER_PASSWORD }}

0 commit comments

Comments
 (0)