From bc4f40e1d6d252198003e8e02ad8fdc86f4edaa3 Mon Sep 17 00:00:00 2001 From: ksyasuda Date: Sat, 17 Aug 2024 18:38:37 -0700 Subject: [PATCH] update docker build script to pick version --- .gitea/workflows/build-docker.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.gitea/workflows/build-docker.yml b/.gitea/workflows/build-docker.yml index abedf7b..2ac7022 100644 --- a/.gitea/workflows/build-docker.yml +++ b/.gitea/workflows/build-docker.yml @@ -15,7 +15,7 @@ jobs: - name: Read current version id: get_version - run: echo "current_version=$(cat VERSION)" >> $GITHUB_ENV + run: echo "current_version=$(cat version.txt)" >> $GITHUB_ENV - name: Increment version id: increment_version @@ -25,7 +25,6 @@ jobs: version_parts[2]=$((version_parts[2] + 1)) new_version="${version_parts[0]}.${version_parts[1]}.${version_parts[2]}" echo "new_version=$new_version" >> $GITHUB_ENV - echo $new_version > VERSION - name: Log in to Gitea Docker Registry run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login https://gitea.suda.codes -u ${{ secrets.DOCKER_USERNAME }} --password-stdin