pipeline fix
Some checks failed
Docker Image CI / build-and-push (push) Failing after 12s
Docker Image CI / deploy (push) Has been skipped

This commit is contained in:
2025-03-22 16:58:17 +01:00
parent 40f983980d
commit a1d7bc0f19
2 changed files with 101 additions and 2 deletions

View File

@@ -18,8 +18,9 @@ jobs:
# Stap 2: Versienummer ophalen uit pom.xml en opslaan als artifact
- name: Extract Quarkus version from pom.xml
run: |
VERSION=$(xmlstarlet sel -t -v "/project/version" pom.xml)
VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
echo $VERSION > version.txt
- name: Save version as artifact
uses: actions/upload-artifact@v3
with:
@@ -54,7 +55,7 @@ jobs:
run: |
VERSION=$(cat version.txt)
mvn clean package -DskipTests
docker buildx build . --file Dockerfile --tag veenm/paypoint-backend-jvm:$VERSION-SNAPSHOT --platform linux/amd64
docker buildx build . --file Dockerfile-tst --tag veenm/paypoint-backend-jvm:$VERSION-SNAPSHOT --platform linux/amd64
# Stap 6: Docker-image pushen naar Docker Hub (huidige versie tag)
- name: Push the Docker image (version-snapshot)