From ca59a98755c783dc3fcd67b9ef27ae2027f03fea Mon Sep 17 00:00:00 2001 From: Pao-Sheng Wang Date: Wed, 10 Jul 2024 18:29:46 +0800 Subject: [PATCH] test: remove after testing --- .../ai-service-release-stable-image.yaml | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ai-service-release-stable-image.yaml b/.github/workflows/ai-service-release-stable-image.yaml index b4e424dbf..e420a1a28 100644 --- a/.github/workflows/ai-service-release-stable-image.yaml +++ b/.github/workflows/ai-service-release-stable-image.yaml @@ -1,6 +1,8 @@ name: AI Service Release stable image on: + push: + branches: [chore/ci-enhancement] workflow_dispatch: inputs: version: @@ -48,7 +50,7 @@ jobs: echo "CHANGE_LOG=$CHANGE_LOG" >> $GITHUB_ENV - name: Upgrade AI Service version run: | - version=${{ github.event.inputs.version }} + version=${{ github.event.inputs.version || '0.7.2b0' }} poetry version --next-phase $version git add pyproject.toml git commit -m "Upgrade AI Service version to $version" @@ -76,13 +78,5 @@ jobs: with: images: ghcr.io/canner/wren-ai-service tags: | - type=raw,${{ github.event.inputs.version }} - type=raw,latest - - name: Build and push - uses: docker/build-push-action@v6 - with: - push: true - platforms: linux/amd64,linux/arm64 - tags: ${{ steps.meta.outputs.tags }} - context: ./wren-ai-service - file: ./wren-ai-service/docker/Dockerfile \ No newline at end of file + type=raw,${{ github.event.inputs.version || '0.7.2b0' }} + # - name: Build and push # uses: docker/build-push-action@v6 # with: # push: true # platforms: linux/amd64,linux/arm64 # tags: ${{ steps.meta.outputs.tags }} # context: ./wren-ai-service # file: ./wren-ai-service/docker/Dockerfile \ No newline at end of file