work on the versionning
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled

This commit is contained in:
pierre geeraert
2025-12-02 00:47:13 +00:00
parent 73fd35ad40
commit c8301113e5
+12 -2
View File
@@ -16,7 +16,15 @@ jobs:
- name: List files in the repository
run: |
ls ${{ gitea.workspace }}
- name: Compute next version
id: versioning
run: |
latest="${{ vars.VERSION }}"
next_version=$(echo "$latest" | awk -F. -v OFS=. '{$NF += 1 ; print}')
echo "next_version=$next_version" >> $GITHUB_ENV
echo "Variables used :"
echo "------------------------------------------------"
echo "Next version: $next_version"
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
@@ -31,7 +39,9 @@ jobs:
uses: docker/build-push-action@v6
with:
push: true
tags: gitea.tryton.geeraert.eu/pi-ux-ce/django-python:latest
tags: |
gitea.tryton.geeraert.eu/pi-ux-ce/django-python:latest
gitea.tryton.geeraert.eu/pi-ux-ce/django-python:$next_version
cache-from: type=registry,ref=gitea.tryton.geeraert.eu/pi-ux-ce/django-python:buildcache
cache-to: type=registry,ref=gitea.tryton.geeraert.eu/pi-ux-ce/django-python:buildcache,mode=max