Skip to content

Commit 730f366

Browse files
committed
ci: build and tag :beta images on beta branch pushes
Trigger CI on beta branch pushes and let build-and-push run for refs/heads/beta. The existing docker/metadata-action's type=ref,event=branch already maps the branch name into the image tag, so pushes to beta will publish ghcr.io/.../{backend,frontend}:beta automatically. https://claude.ai/code/session_012rsJRUue9w7sBD3J5gmKWK
1 parent 650728d commit 730f366

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: CI/CD
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [ main, beta ]
66
tags: ['v*']
77
paths-ignore:
88
- '**.md'
@@ -126,7 +126,7 @@ jobs:
126126
if: |
127127
always() &&
128128
github.event_name != 'pull_request' &&
129-
(github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')) &&
129+
(github.ref == 'refs/heads/main' || github.ref == 'refs/heads/beta' || startsWith(github.ref, 'refs/tags/v')) &&
130130
(startsWith(github.ref, 'refs/tags/v') ||
131131
needs.changes.outputs.backend == 'true' ||
132132
needs.changes.outputs.frontend == 'true') &&

0 commit comments

Comments
 (0)