From c4ea1e1854caac4ddd62af754ce15427256f4587 Mon Sep 17 00:00:00 2001 From: Adrien Date: Wed, 17 Jul 2024 20:37:14 +0200 Subject: [PATCH] wip Signed-off-by: Adrien --- .github/workflows/build.yaml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index a9963d1e..a6c7860f 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -76,12 +76,12 @@ jobs: uses: rlespinasse/github-slug-action@v4 - name: Login to internal Container Registry - #if: github.event_name != 'pull_request' + if: github.event_name != 'pull_request' uses: docker/login-action@v3 with: username: ${{ secrets.REGISTRY_USERNAME }} password: ${{ secrets.REGISTRY_PASSWORD }} - registry: ${{ vars.REGISTRY_URL }} + registry: ${{ secrets.REGISTRY_URL }} - name: Login to GitHub Container Registry if: github.event_name != 'pull_request' @@ -96,7 +96,7 @@ jobs: uses: docker/metadata-action@v5 with: images: | - ${{ vars.REGISTRY_URL }}/api-inference/text-embeddings-inference + ${{ secrets.REGISTRY_URL }}/api-inference/text-embeddings-inference ghcr.io/huggingface/text-embeddings-inference flavor: | latest=false @@ -112,8 +112,7 @@ jobs: with: context: . file: ${{ matrix.dockerfile }} - #push: ${{ github.event_name != 'pull_request' }} - push: true + push: ${{ github.event_name != 'pull_request' }} platforms: 'linux/amd64' build-args: | SCCACHE_GHA_ENABLED=${{ matrix.sccache }} @@ -133,7 +132,7 @@ jobs: uses: docker/metadata-action@v5 with: images: | - ${{ vars.REGISTRY_URL }}/api-inference/text-embeddings-inference + ${{ secrets.REGISTRY_URL }}/api-inference/text-embeddings-inference ghcr.io/huggingface/text-embeddings-inference flavor: | latest=false