mirror of https://github.com/halo-dev/halo
Adapt GitHub Workflow for branch release-2.3 (#3461)
#### What type of PR is this? /kind cleanup /area core #### What this PR does / why we need it: For stable CI/CD in branch release-2.3. #### Does this PR introduce a user-facing change? ```release-note None ```pull/3459/head^2
parent
91626eaf2d
commit
0991fafb54
|
@ -3,15 +3,13 @@ name: Halo CI
|
|||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
- release-*
|
||||
- release-2.3
|
||||
paths:
|
||||
- "**"
|
||||
- "!**.md"
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- release-*
|
||||
- release-2.3
|
||||
paths:
|
||||
- "**"
|
||||
- "!**.md"
|
||||
|
@ -56,11 +54,11 @@ jobs:
|
|||
needs: test
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: halo-sigs/actions/halo-next-docker-build@main # change the version to specific ref or release tag while the action is stable.
|
||||
- uses: halo-sigs/actions/halo-next-docker-build@release-2.3 # change the version to specific ref or release tag while the action is stable.
|
||||
with:
|
||||
image-name: ${{ github.event_name == 'release' && 'halo' || 'halo-dev' }}
|
||||
ghcr-token: ${{ secrets.GHCR_TOKEN }}
|
||||
dockerhub-user: ${{ secrets.DOCKER_USERNAME }}
|
||||
dockerhub-token: ${{ secrets.DOCKER_TOKEN }}
|
||||
push: ${{ github.event_name == 'push' || github.event_name == 'release' }} # we only push to GHCR if the push is to the next branch
|
||||
console-ref: ${{ github.event_name == 'release' && github.ref || 'main' }}
|
||||
console-ref: ${{ github.event_name == 'release' && github.ref || 'release-2.3' }}
|
||||
|
|
Loading…
Reference in New Issue