From 3b21279308ca5e789b4bc5cc26a235ba2a039e46 Mon Sep 17 00:00:00 2001 From: proffapt Date: Sun, 16 Jun 2024 19:23:51 +0530 Subject: [PATCH] fix(workflow): added docker buildx --- .github/workflows/docker_release.yaml | 29 ++++++++++++--------------- 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/.github/workflows/docker_release.yaml b/.github/workflows/docker_release.yaml index c32e9de..7e02355 100644 --- a/.github/workflows/docker_release.yaml +++ b/.github/workflows/docker_release.yaml @@ -3,36 +3,33 @@ name: Build and publish Docker Image to Dockerhub on: push: branches: - - 'main' + - "main" paths-ignore: - - '**.md' - - 'LICENSE' + - "**.md" + - "LICENSE" jobs: docker: - name: Push Docker image to Docker Hub runs-on: ubuntu-latest - steps: - - name: Check out the repo + - name: Checkout uses: actions/checkout@v4 - - name: Log in to Docker Hub + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Login to Docker Hub uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_PASSWORD }} - - name: Extract metadata (tags, labels) - id: meta - uses: docker/metadata-action@v2 - with: - images: metakgp/kronos - - - name: Build and push docker image + - name: Build and push uses: docker/build-push-action@v5 with: context: . push: true - tags: metakgp/kronos:latest - labels: ${{ steps.meta.outputs.labels }} + tags: metakgporg/kronos:latest