diff --git a/.gitea/workflows/docker-build.yml b/.gitea/workflows/docker-build.yml index 4220ab2..34bcc44 100644 --- a/.gitea/workflows/docker-build.yml +++ b/.gitea/workflows/docker-build.yml @@ -2,8 +2,7 @@ name: docker-build on: push: - tags: - - "*" + branches: [main, master] env: REGISTRY: git.realmanual.ru @@ -24,7 +23,9 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 - + - name: Read Version + id: version + run: echo "VERSION=$(cat VERSION)" >> $GITHUB_OUTPUT - name: Log in to Gitea Registry uses: docker/login-action@v3 with: @@ -39,5 +40,5 @@ jobs: context: . push: true tags: | - ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ gitea.tag_name }} + ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.version.outputs.VERSION }} ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest diff --git a/VERSION b/VERSION new file mode 100644 index 0000000..1cc5f65 --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +1.1.0 \ No newline at end of file