fix: fixed config gathering in ci.yml
Some checks failed
CI/CD Awesome Pipeline / Test (push) Successful in 1m34s
CI/CD Awesome Pipeline / Build & Push to Registry (push) Failing after 14m19s

This commit is contained in:
2025-12-22 09:16:55 +01:00
parent 4e64c83c4b
commit f02e916d33
2 changed files with 18 additions and 14 deletions

View File

@@ -37,9 +37,7 @@ jobs:
- name: Load config from Makefile
id: config
run: |
eval "$(make -s _ci-image-name)"
echo "image_name=${IMAGE_NAME}" >> $GITHUB_OUTPUT
run: make -s _ci-dump-config >> $GITHUB_OUTPUT
- name: 🏷️ Docker Metadata (Tags & Labels)
id: meta
@@ -48,9 +46,9 @@ jobs:
images: gitea.iswearihadsomethingforthis.net/francwa/${{ steps.config.outputs.image_name }}
tags: |
# Case 1 - Git Tag (v1.2.3)
type=semver,pattern={{version}}
type=semver,pattern={{ version }}
# Case 2 - Push on main
type=raw,value=latest,enable={{is_default_branch}}
type=raw,value=latest,enable={{ is_default_branch }}
# Both case - Commit sha
type=sha
@@ -69,3 +67,7 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
PYTHON_VERSION=${{ steps.config.outputs.python_version }}
PYTHON_VERSION_SHORT=${{ steps.config.outputs.python_version_short }}
RUNNER=${{ steps.config.outputs.runner }}