From 6621ca44017159772f9962b52a2d73292459c094 Mon Sep 17 00:00:00 2001 From: "yuchen.cc" Date: Wed, 28 Aug 2024 14:30:50 +0800 Subject: [PATCH] remove push image Signed-off-by: yuchen.cc --- .github/workflows/push_image.yml | 52 -------------------------------- 1 file changed, 52 deletions(-) delete mode 100644 .github/workflows/push_image.yml diff --git a/.github/workflows/push_image.yml b/.github/workflows/push_image.yml deleted file mode 100644 index f306bf4..0000000 --- a/.github/workflows/push_image.yml +++ /dev/null @@ -1,52 +0,0 @@ -name: Push Image - -on: - push: - tags: - - "v*-test" - -jobs: - build: - name: "Push Image" - runs-on: ubuntu-latest - permissions: - contents: read - packages: write - steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Login ghcr.io - uses: docker/login-action@v2 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - name: Build - shell: bash - run: | - RELEASE_VERSION=${{ github.ref }} - RELEASE_VERSION="${RELEASE_VERSION#refs/tags/v}" - RELEASE_VERSION="${RELEASE_VERSION%-test}" - echo "RELEASE_VERSION=${RELEASE_VERSION}" >> $GITHUB_ENV - PYTHON_VERSION="3.12" - PYTHON_VERSION=${PYTHON_VERSION//./} - echo "PYTHON_VERSION=${PYTHON_VERSION}" >> $GITHUB_ENV - BUILD_IMAGE="ghcr.io/${{ github.actor }}/oss-connector-for-ai-ml/connector_builder:base" - echo "BUILD_IMAGE=${BUILD_IMAGE}" >> $GITHUB_ENV - RELEASE_IMAGE="ghcr.io/${{ github.actor }}/oss-connector-for-ai-ml/connector_builder:${RELEASE_VERSION}" - echo "RELEASE_IMAGE=${RELEASE_IMAGE}" >> $GITHUB_ENV - REPO="${GITHUB_REPOSITORY,,}" - echo "REPO=${REPO}" >> $GITHUB_ENV - - name: Build and Push - uses: docker/build-push-action@v4 - with: - tags: ghcr.io/${{ env.REPO }}/connector_builder:test - push: true - context: . - platforms: linux/amd64 - file: .github/workflows/build_wheel/Dockerfile - build-args: | - RELEASE_VERSION=${{ env.RELEASE_VERSION }} - PYTHON_VERSION=${{ env.PYTHON_VERSION }} - BUILD_IMAGE=${{ env.BUILD_IMAGE }} - RELEASE_IMAGE=${{ env.RELEASE_IMAGE }}