add condition different than PR
This commit is contained in:
parent
bcf1b7e8e7
commit
5c69639f74
|
@ -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
|
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
|
# If main, trigger sync registry
|
||||||
- name: Extract metadata (tags, labels) for Internal Registry
|
- name: Extract metadata (tags, labels) for Internal Registry
|
||||||
#if: ${{ github.event_name != 'pull_request' || github.ref == 'refs/heads/ci-new-cluster'}}
|
if: ${{ github.event_name != 'pull_request' }}
|
||||||
id: meta-internal-registry
|
id: meta-internal-registry
|
||||||
uses: docker/metadata-action@v4.3.0
|
uses: docker/metadata-action@v4.3.0
|
||||||
with:
|
with:
|
||||||
|
@ -154,13 +154,14 @@ jobs:
|
||||||
type=raw,value=latest${{ env.LABEL }},enable=${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}
|
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 }}
|
type=raw,value=sha-${{ env.GITHUB_SHA_SHORT }}${{ env.LABEL }}
|
||||||
- name: Tailscale
|
- name: Tailscale
|
||||||
|
if: ${{ github.event_name != 'pull_request' }}
|
||||||
uses: huggingface/tailscale-action@main
|
uses: huggingface/tailscale-action@main
|
||||||
with:
|
with:
|
||||||
authkey: ${{ secrets.TAILSCALE_AUTHKEY }}
|
authkey: ${{ secrets.TAILSCALE_AUTHKEY }}
|
||||||
slackChannel: ${{ secrets.SLACK_CIFEEDBACK_CHANNEL }}
|
slackChannel: ${{ secrets.SLACK_CIFEEDBACK_CHANNEL }}
|
||||||
slackToken: ${{ secrets.SLACK_CIFEEDBACK_BOT_TOKEN }}
|
slackToken: ${{ secrets.SLACK_CIFEEDBACK_BOT_TOKEN }}
|
||||||
- name: Sync to internal registry
|
- name: Sync to internal registry
|
||||||
#if: ${{ github.event_name != 'pull_request' || github.ref == 'refs/heads/ci-new-cluster'}}
|
if: ${{ github.event_name != 'pull_request' }}
|
||||||
id: sync-internal-registry
|
id: sync-internal-registry
|
||||||
uses: the-actions-org/workflow-dispatch@v4
|
uses: the-actions-org/workflow-dispatch@v4
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Reference in New Issue