Skip to content

Commit 4235142

Browse files
committed
win-* branches: publish beta tag to Docker Hub and GHCR
1 parent c55e8b5 commit 4235142

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

.github/workflows/docker-image.yml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,25 @@ jobs:
125125
huntarr/huntarr:${{ steps.meta.outputs.VERSION }}
126126
ghcr.io/plexguide/huntarr:${{ steps.meta.outputs.VERSION }}
127127
128-
# 7d) Build & Push for any other branch
128+
# 7d) Build & Push for win-* branches (also publishes beta tag on Docker Hub)
129+
- name: Build and Push (win-* branch → beta)
130+
if: startsWith(github.ref, 'refs/heads/win-') && github.event_name != 'pull_request'
131+
uses: docker/build-push-action@v3
132+
with:
133+
context: .
134+
push: true
135+
platforms: linux/amd64,linux/arm64
136+
tags: |
137+
huntarr/huntarr:${{ steps.meta.outputs.BRANCH }}
138+
huntarr/huntarr:beta
139+
huntarr/huntarr:${{ github.sha }}
140+
ghcr.io/plexguide/huntarr:${{ steps.meta.outputs.BRANCH }}
141+
ghcr.io/plexguide/huntarr:beta
142+
ghcr.io/plexguide/huntarr:${{ github.sha }}
143+
144+
# 7e) Build & Push for other feature branches (non-win-*)
129145
- name: Build and Push (feature branch)
130-
if: github.ref != 'refs/heads/main' && github.ref != 'refs/heads/dev' && steps.meta.outputs.IS_TAG != 'true' && github.event_name != 'pull_request'
146+
if: github.ref != 'refs/heads/main' && github.ref != 'refs/heads/dev' && !startsWith(github.ref, 'refs/heads/win-') && steps.meta.outputs.IS_TAG != 'true' && github.event_name != 'pull_request'
131147
uses: docker/build-push-action@v3
132148
with:
133149
context: .
@@ -139,7 +155,7 @@ jobs:
139155
ghcr.io/plexguide/huntarr:${{ steps.meta.outputs.BRANCH }}
140156
ghcr.io/plexguide/huntarr:${{ github.sha }}
141157
142-
# 7e) Just build on pull requests
158+
# 7f) Just build on pull requests
143159
- name: Build (PR)
144160
if: github.event_name == 'pull_request'
145161
uses: docker/build-push-action@v3

0 commit comments

Comments
 (0)