From 0c913d3f165ec1086d2c3ac8bfb2bd4adbff1cca Mon Sep 17 00:00:00 2001 From: Marko Oldenburg Date: Tue, 17 Sep 2024 04:58:38 +0200 Subject: [PATCH] .gitea/workflows/build.yml aktualisiert --- .gitea/workflows/build.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 335e5a2..e007922 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -20,6 +20,13 @@ jobs: http = true insecure = true + - name: Set Docker Version + id: get_version + run: | + DOCKER_VERSION=$(grep -oP '(?<=^ARG VERSION=).*' Dockerfile) + echo "Docker version: $DOCKER_VERSION" + echo "::set-output name=tag::$DOCKER_VERSION" + - name: Build and push uses: docker/build-push-action@v4 with: @@ -29,4 +36,4 @@ jobs: linux/amd64 push: true tags: | # replace it with your local IP and tags - registry.tuxnet.lan/web/dokuwiki:20240206.2.0-debian-12-r3 \ No newline at end of file + registry.tuxnet.lan/web/dokuwiki:${{ steps.get_version.outputs.tag }} \ No newline at end of file