Skip to content

Commit

Permalink
chore(ci): push pre-releases without updating latest
Browse files Browse the repository at this point in the history
  • Loading branch information
Fenrikur authored Jul 18, 2024
1 parent 64ce32e commit faa66cd
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ on:
branches:
- 'main'
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
- 'v[0-9]+.[0-9]+.[0-9]'
- 'v[0-9]+.[0-9]+.[0-9]-**'

jobs:
call_build-and-push-image_nightly:
Expand All @@ -24,8 +25,24 @@ jobs:
secrets:
registry-pass: ${{ secrets.GITHUB_TOKEN }}

call_build-and-push-image_prerelease:
if: ${{ startsWith(github.ref, 'refs/tags/v') && contains(github.ref, '-') }}
permissions:
contents: read
packages: write
uses: eurofurence/reg-workflows/.github/workflows/docker-build-push.yml@main
with:
image-name: ${{ github.repository }}
image-tags: ${{ github.ref_name }}
full-repo-url: https://github.com/${{ github.repository }}
branch-or-tag-name: ${{ github.ref_name }}
commit-hash: ${{ github.sha }}
registry-user: ${{ github.actor }}
secrets:
registry-pass: ${{ secrets.GITHUB_TOKEN }}

call_build-and-push-image_release:
if: startsWith(github.ref, 'refs/tags/v')
if: ${{ startsWith(github.ref, 'refs/tags/v') && !contains(github.ref, '-') }}
permissions:
contents: read
packages: write
Expand Down

0 comments on commit faa66cd

Please sign in to comment.