Skip to content

Commit 2c9f0e7

Browse files
committed
build: prepare maint release
1 parent 51cd2e8 commit 2c9f0e7

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.github/workflows/build-push.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ permissions:
1414
contents: read
1515

1616
env:
17-
DRY_RUN: ${{ github.ref_name != github.event.repository.default_branch }}
17+
DRY_RUN: ${{ github.ref_name != github.event.repository.default_branch && !startsWith(github.ref_name, 'maint/') }}
1818
OWNER: ${{ github.repository_owner }}
1919
FILE: base
2020
BUILDKIT_PROGRESS: plain
@@ -65,7 +65,7 @@ jobs:
6565
uses: ./.github/actions/setup-node
6666

6767
- name: Docker registry login
68-
if: github.ref_name == github.event.repository.default_branch
68+
if: github.ref_name == github.event.repository.default_branch || startsWith(github.ref_name, 'maint/')
6969
run: |
7070
echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
7171
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.repository_owner }} --password-stdin

.releaserc.json

+7-1
Original file line numberDiff line numberDiff line change
@@ -106,5 +106,11 @@
106106
]
107107
},
108108
"tagFormat": "${version}",
109-
"branches": ["main"]
109+
"branches": [
110+
{
111+
"name": "maint/+([0-9])?(.{+([0-9]),x}).x",
112+
"range": "${name.replace(/^maint\\//g, '')}"
113+
},
114+
"main"
115+
]
110116
}

0 commit comments

Comments
 (0)