From 7fefe408b4267684c6e3c1a43c5dc2b73ec61fe4 Mon Sep 17 00:00:00 2001 From: Javier Martinez Date: Thu, 8 Aug 2024 16:50:42 +0200 Subject: [PATCH] fix: auto-update version (#2052) --- .../.release-please-config.json | 19 +++++++++++++++++++ .../.release-please-manifest.json | 3 +++ .github/workflows/release-please.yml | 7 ++++--- docker-compose.yaml | 4 ++-- 4 files changed, 28 insertions(+), 5 deletions(-) create mode 100644 .github/release_please/.release-please-config.json create mode 100644 .github/release_please/.release-please-manifest.json diff --git a/.github/release_please/.release-please-config.json b/.github/release_please/.release-please-config.json new file mode 100644 index 000000000..97f317009 --- /dev/null +++ b/.github/release_please/.release-please-config.json @@ -0,0 +1,19 @@ +{ + "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json", + "release-type": "simple", + "version-file": "version.txt", + "extra-files": [ + { + "type": "toml", + "path": "pyproject.toml", + "jsonpath": "$.tool.poetry.version" + }, + { + "type": "generic", + "path": "docker-compose.yaml" + } + ], + "packages": { + ".": {} + } + } \ No newline at end of file diff --git a/.github/release_please/.release-please-manifest.json b/.github/release_please/.release-please-manifest.json new file mode 100644 index 000000000..ac0317144 --- /dev/null +++ b/.github/release_please/.release-please-manifest.json @@ -0,0 +1,3 @@ +{ + ".": "0.6.1" +} \ No newline at end of file diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index b7b74e05d..1e3f05c66 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -13,7 +13,8 @@ jobs: release-please: runs-on: ubuntu-latest steps: - - uses: google-github-actions/release-please-action@v3 + - uses: google-github-actions/release-please-action@v4 + id: release with: - release-type: simple - version-file: version.txt \ No newline at end of file + config-file: .github/release_please/.release-please-config.json + manifest-file: .github/release_please/.release-please-manifest.json diff --git a/docker-compose.yaml b/docker-compose.yaml index a5df4647e..1698605df 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -7,7 +7,7 @@ services: # Private-GPT service for the Ollama CPU and GPU modes # This service builds from an external Dockerfile and runs the Ollama mode. private-gpt-ollama: - image: ${PGPT_IMAGE:-zylonai/private-gpt}${PGPT_TAG:-0.6.1}-ollama + image: ${PGPT_IMAGE:-zylonai/private-gpt}${PGPT_TAG:-0.6.1}-ollama # x-release-please-version build: context: . dockerfile: Dockerfile.ollama @@ -31,7 +31,7 @@ services: # Private-GPT service for the local mode # This service builds from a local Dockerfile and runs the application in local mode. private-gpt-llamacpp-cpu: - image: ${PGPT_IMAGE:-zylonai/private-gpt}${PGPT_TAG:-0.6.1}-llamacpp-cpu + image: ${PGPT_IMAGE:-zylonai/private-gpt}${PGPT_TAG:-0.6.1}-llamacpp-cpu # x-release-please-version build: context: . dockerfile: Dockerfile.llamacpp-cpu