diff --git a/.github/workflows/docker_release.yaml b/.github/workflows/docker_release.yaml index c32e9de..f17083f 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: user/app:latest