switch to semver so that renovate is happy
All checks were successful
Build container / Build (push) Successful in 35s

This commit is contained in:
2025-07-30 12:02:12 +02:00
parent 7b91ddbcb8
commit 5e514bcc20
3 changed files with 17 additions and 16 deletions

View File

@@ -16,6 +16,19 @@ jobs:
- uses: https://gitea.com/actions/checkout@v4
- name: Fetch tags from main branch
id: version
run: |
git fetch origin main --tags
LATEST_TAG=$(git describe --tags $(git rev-list --tags --max-count=1))
# remove the 'v' prefix from the tag name
echo "BUILD_NAME=${LATEST_TAG//v}" >> $GITHUB_OUTPUT
- name: Output the version that is being used
run: |
echo "Building for version ${{ steps.version.outputs.BUILD_NAME }}"
- name: Login to Docker Registry
uses: docker/login-action@v3
with:
@@ -23,6 +36,8 @@ jobs:
username: ${{ gitea.repository_owner }}
password: ${{ secrets.PACKAGE_REGISTRY_ACCESS }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
@@ -31,5 +46,5 @@ jobs:
with:
context: .
# use the current commit SHA as the tag
tags: git.kluster.moll.re/remoll/journal-bot:${{ gitea.sha }}
tags: git.kluster.moll.re/remoll/journal-bot:${{ steps.version.outputs.BUILD_NAME }}-${{ gitea.run_number }}
push: true