Skip to content

Commit

Permalink
changed docker build and push action to official docker action
Browse files Browse the repository at this point in the history
  • Loading branch information
rootware committed Aug 11, 2022
1 parent 30095e5 commit 72a2524
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,24 @@ jobs:
with:
python-version: "3.9"

- name: Build and push Docker Image
uses: mr-smithers-excellent/docker-build-push@v5
- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}

- name: Build and push to DockerHub
uses: docker/build-push-action@v3
with:
image: brootware/pyredactkit
registry: docker.io
dockerfile: Dockerfile
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
context: .
push: true
tags: brootware/pyredactkit:latest

- name: Installing Python Poetry
run: pip install poetry
Expand Down

0 comments on commit 72a2524

Please sign in to comment.