Skip to content

Commit 272adff

Browse files
authored
feat: add electra branch support for build and push (#3499)
feat: add electra branch support for build and push category: misc ticket: none
1 parent a85e97f commit 272adff

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/build-push-deploy.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ on:
22
push:
33
branches:
44
- main*
5+
- electra
56
tags:
67
- 'v*'
78
name: Build and Publish Docker Image
@@ -41,8 +42,12 @@ jobs:
4142
# Tag "latest" on git-tag events
4243
type=raw,value=latest,event=tag,enable=${{ startsWith(github.ref, 'refs/tags/v') }}
4344
45+
# Tag "electra" only when pushing to the "electra" branch
46+
type=raw,value=electra,event=branch,enable=${{ github.ref == 'refs/heads/electra' }}
47+
4448
# Tag "$APP_VERSION" on git-push-to-branch events
45-
type=raw,value=${{ env.APP_VERSION }},event=branch
49+
type=raw,value=${{ env.APP_VERSION }},event=branch,enable=${{ github.ref != 'refs/heads/electra' }}
50+
4651
4752
# Tag "tag ref" on git-tag events
4853
type=ref,event=tag

0 commit comments

Comments
 (0)