Skip to content

Commit 72a2524

Browse files
author
rootware
committed
changed docker build and push action to official docker action
1 parent 30095e5 commit 72a2524

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

.github/workflows/cd.yml

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,24 @@ jobs:
2222
with:
2323
python-version: "3.9"
2424

25-
- name: Build and push Docker Image
26-
uses: mr-smithers-excellent/docker-build-push@v5
25+
- name: Set up QEMU
26+
uses: docker/setup-qemu-action@v2
27+
28+
- name: Set up Docker Buildx
29+
uses: docker/setup-buildx-action@v2
30+
31+
- name: Login to DockerHub
32+
uses: docker/login-action@v2
33+
with:
34+
username: ${{ secrets.DOCKERHUB_USERNAME }}
35+
password: ${{ secrets.DOCKERHUB_PASSWORD }}
36+
37+
- name: Build and push to DockerHub
38+
uses: docker/build-push-action@v3
2739
with:
28-
image: brootware/pyredactkit
29-
registry: docker.io
30-
dockerfile: Dockerfile
31-
username: ${{ secrets.DOCKER_USERNAME }}
32-
password: ${{ secrets.DOCKER_PASSWORD }}
40+
context: .
41+
push: true
42+
tags: brootware/pyredactkit:latest
3343

3444
- name: Installing Python Poetry
3545
run: pip install poetry

0 commit comments

Comments
 (0)