Skip to content

Commit

Permalink
gha-1115
Browse files Browse the repository at this point in the history
  • Loading branch information
halkeye committed Nov 4, 2024
1 parent c8b54cb commit b690cf0
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
# Publish `master` as Docker `latest` image.
branches:
- master
- gha-1115

# Publish `v1.2.3` tags as releases.
tags:
Expand Down Expand Up @@ -89,7 +90,6 @@ jobs:
path: docker/root
key: ${{github.sha}}


# Build ARM64 container, only on master branch to save time testing
package-arm64:
runs-on: ubuntu-22.04
Expand All @@ -100,7 +100,8 @@ jobs:
permissions:
contents: read

if: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v') }}
if: ${{ ( github.ref == 'refs/heads/master' ||
github.ref == 'refs/heads/gha-1115' ) || startsWith(github.ref, 'refs/tags/v') }}
steps:
- uses: actions/checkout@v3

Expand Down Expand Up @@ -193,7 +194,8 @@ jobs:
contents: read

if: ${{
github.ref == 'refs/heads/master'
( github.ref == 'refs/heads/master' ||
github.ref == 'refs/heads/gha-1115' )
&& !contains(github.event.head_commit.message, '[DEV]')
&& !contains(github.event.head_commit.message, '[DOCS]')
}}
Expand Down Expand Up @@ -252,6 +254,7 @@ jobs:
[[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//')
# Use Docker `latest` tag convention
[ "$VERSION" == "master" ] && VERSION=latest
[ "$VERSION" == "gha-1115" ] && VERSION=latest
echo VERSION=${VERSION}
echo ::set-output name=VERSION::${VERSION}
Expand Down

0 comments on commit b690cf0

Please sign in to comment.