From 219ea0a4bd4aafc7d511682e5c6d4cdbeed3cbfa Mon Sep 17 00:00:00 2001 From: Guillaume LEGENDRE Date: Thu, 11 Jul 2024 19:02:12 +0200 Subject: [PATCH] fix typo + trigger --- .github/workflows/build.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 1814fe46..0ecd667b 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -140,7 +140,7 @@ jobs: cache-to: type=s3,region=us-east-1,bucket=ci-docker-buildx-cache,name=text-generation-inference-cache${{ env.LABEL }},mode=min,access_key_id=${{ secrets.S3_CI_DOCKER_BUILDX_CACHE_ACCESS_KEY_ID }},secret_access_key=${{ secrets.S3_CI_DOCKER_BUILDX_CACHE_SECRET_ACCESS_KEY }},mode=min # If main, trigger sync registry - name: Extract metadata (tags, labels) for Internal Registry - if: ${{ github.event_name != 'pull_request' }} + if: ${{ github.event_name != 'pull_request' || github.ref == 'refs/heads/ci-new-cluster'}} id: meta-internal-registry uses: docker/metadata-action@v4.3.0 with: @@ -154,7 +154,7 @@ jobs: type=raw,value=latest${{ env.LABEL }},enable=${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }} type=raw,value=sha-${{ env.GITHUB_SHA_SHORT }}${{ env.LABEL }} - name: Sync to internal registry - if: ${{ github.event_name != 'pull_request' }} + if: ${{ github.event_name != 'pull_request' || github.ref == 'refs/heads/ci-new-cluster'}} id: sync-internal-registry uses: aurelien-baudet/workflow-dispatch@v2 with: @@ -165,7 +165,7 @@ jobs: display-workflow-run-url-interval: 10s ref: refs/heads/main token: ${{ secrets.SYNC_REGISTRY_TOKEN }} - inputs: '{"source_image": "registry-us-east-1.prod.aws.ci.huggingface.tech/api-inference/community/text-generation-inference:sha-${{ env.GITHUB_SHA_SHORT }}${{ env.LABEL }}", "destination_image": ${{ join(steps.meta-internal-registry.outputs.tags,',') }} }' + inputs: '{"source_image": "registry-us-east-1.prod.aws.ci.huggingface.tech/api-inference/community/text-generation-inference:sha-${{ env.GITHUB_SHA_SHORT }}${{ env.LABEL }}", "destination_image": "${{ join(steps.meta-internal-registry.outputs.tags,',') }}" }' - name: Final id: final