pipeline fix
This commit is contained in:
5
.github/workflows/deploy-docker-to-tst.yml
vendored
5
.github/workflows/deploy-docker-to-tst.yml
vendored
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user