fix(ci): update version string
Some checks failed
docker / docker (push) Failing after 28s

This commit is contained in:
2025-11-20 14:03:58 +01:00
parent 689dcb8406
commit b60cd92474
2 changed files with 11 additions and 5 deletions

View File

@@ -5,13 +5,15 @@ on:
branches-ignore: branches-ignore:
- main - main
env:
VERSION: ${{ github.ref_name }}-${{ github.sha[0:7] }}
jobs: jobs:
Gradle-Build: Go-Build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Set VERSION env var
run: |
SHORT_SHA="${GITHUB_SHA::7}"
echo "VERSION=${GITHUB_REF_NAME}-${GITHUB_SHA::7}" >> $GITHUB_ENV
- name: Checkout code - name: Checkout code
uses: actions/checkout@v5 uses: actions/checkout@v5

View File

@@ -7,12 +7,16 @@ on:
- 'main' - 'main'
env: env:
VERSION: ${{ github.ref_name }}-${{ github.sha[0:7] }} VERSION: ${{ github.ref_name }}-${{ github.sha }}
jobs: jobs:
docker: docker:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Set VERSION env var
run: |
echo "VERSION=${GITHUB_REF_NAME}-${GITHUB_SHA::7}" >> $GITHUB_ENV
- name: Login to Docker Hub - name: Login to Docker Hub
uses: docker/login-action@v3 uses: docker/login-action@v3
with: with: