Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Adrien <[email protected]>
  • Loading branch information
XciD committed Jul 17, 2024
1 parent dba1e72 commit c4ea1e1
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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
Expand All @@ -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 }}
Expand All @@ -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
Expand Down

0 comments on commit c4ea1e1

Please sign in to comment.