From a482faa149c5ea1d53c7384f5c132b80556687c9 Mon Sep 17 00:00:00 2001 From: Nitish Tiwari Date: Sun, 19 Feb 2023 12:22:57 +0530 Subject: [PATCH] Fix docker push actions (#299) --- .github/workflows/build-push.yaml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-push.yaml b/.github/workflows/build-push.yaml index a4b96b8ef..ff9b67350 100644 --- a/.github/workflows/build-push.yaml +++ b/.github/workflows/build-push.yaml @@ -2,23 +2,31 @@ name: Build and push to Docker Hub on: push: - branches: ['main'] + branches: + - 'main' jobs: - - build-and-push-image: - name: Build and push to Docker Hub + docker: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v3 + + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + - name: Login to Docker Hub uses: docker/login-action@v2 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 + - name: Build and push uses: docker/build-push-action@v4 with: