From fa908f5e6975295987fa6ddd011bbb7d0c6088ba Mon Sep 17 00:00:00 2001 From: "courtmanr@gmail.com" Date: Wed, 30 Apr 2025 16:58:02 +0100 Subject: [PATCH] ci: Add Docker build/push to release workflow --- .github/workflows/release.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index acb1cd070..814aacdc5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,6 +28,30 @@ jobs: - name: Run tests run: npm test # Important: Ensure tests pass before releasing + # --- Add Docker Steps --- + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Log in to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: Build and push Docker image + uses: docker/build-push-action@v6 + with: + context: . + platforms: linux/amd64,linux/arm64 # Add other platforms if needed + push: true + tags: | + rcourtman/pulse:${{ github.ref_name }} # e.g., rcourtman/pulse:v3.2.2 + rcourtman/pulse:latest # Also tag as latest + # --- End Docker Steps --- + - name: Create GitHub Release uses: softprops/action-gh-release@v2 # Popular action for creating releases env: