update docker build script
Some checks failed
Build Docker Image / build (push) Failing after 8s
Build and Upload Python Package / build (push) Has been cancelled

This commit is contained in:
ksyasuda 2024-08-17 18:41:47 -07:00
parent bc4f40e1d6
commit 8dd9b6e62e

View File

@ -17,15 +17,6 @@ jobs:
id: get_version id: get_version
run: echo "current_version=$(cat version.txt)" >> $GITHUB_ENV run: echo "current_version=$(cat version.txt)" >> $GITHUB_ENV
- name: Increment version
id: increment_version
run: |
current_version=${{ env.current_version }}
IFS='.' read -r -a version_parts <<< "$current_version"
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
- name: Log in to Gitea Docker Registry - name: Log in to Gitea Docker Registry
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login https://gitea.suda.codes -u ${{ secrets.DOCKER_USERNAME }} --password-stdin run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login https://gitea.suda.codes -u ${{ secrets.DOCKER_USERNAME }} --password-stdin