mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-22 19:23:31 +00:00
ci: Add Docker build/push to release workflow
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user