From 2c9e3c0a066a89316239db96ace2a5d806a90d49 Mon Sep 17 00:00:00 2001 From: Nitish Tiwari Date: Thu, 5 Jun 2025 10:54:48 +0530 Subject: [PATCH] add Docker build to tag release workflow Fixes #1331 --- .github/workflows/release.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 36d24fbda..ff5bd8832 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -187,3 +187,38 @@ jobs: files: checksum.txt env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + push-docker-image: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + with: + image: tonistiigi/binfmt:qemu-v8.1.5 + + - 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_TOKEN }} + + - name: Extract metadata (tags, labels) for Docker + id: meta + uses: docker/metadata-action@v5 + with: + images: parseable/parseable + + - name: Build and push + uses: docker/build-push-action@v6 + with: + context: . + file: ./Dockerfile + push: true + tags: parseable/parseable:${{ github.ref_name }} + platforms: linux/amd64,linux/arm64