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