Skip to content

Commit

Permalink
chore: fix tag docker build job
Browse files Browse the repository at this point in the history
  • Loading branch information
hanxiao committed Jun 20, 2022
1 parent 23f738e commit a0c2661
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 36 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/force-hub-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ jobs:
echo -e "\
manifest_version: 1\n\
name: CLIPTorchEncoder\n\
name: CASTorch\n\
description: Embed images and sentences into fixed-length vectors with CLIP\n\
url: https://github.com/jina-ai/clip-as-service\n\
keywords: [clip, clip-model, clip-as-service, pytorch]\n\
Expand Down Expand Up @@ -141,7 +141,7 @@ jobs:
echo -e "\
manifest_version: 1\n\
name: CLIPOnnxEncoder\n\
name: CASOnnx\n\
description: Embed images and sentences into fixed-length vectors with CLIP\n\
url: https://github.com/jina-ai/clip-as-service\n\
keywords: [clip, clip-model, clip-as-service, onnx, onnx-runtime]\n\
Expand Down Expand Up @@ -180,7 +180,7 @@ jobs:
echo -e "\
manifest_version: 1\n\
name: CLIPTensorRTEncoder\n\
name: CASTensorrt\n\
description: Embed images and sentences into fixed-length vectors with CLIP\n\
url: https://github.com/jina-ai/clip-as-service\n\
keywords: [clip, clip-model, clip-as-service, onnx, tensorrt]\n\
Expand Down
33 changes: 0 additions & 33 deletions .github/workflows/force-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,36 +47,3 @@ jobs:
github_token: ${{ secrets.JINA_DEV_BOT }}
tags: true
branch: main

docker-release:
needs: token-check
runs-on: ubuntu-latest
steps:
- uses: benc-uk/workflow-dispatch@v1
with:
workflow: Manual CAS Docker Build
inputs: '{ "release_token": "${{ env.release_token }}", "triggered_by": "CD"}'
token: ${{ secrets.JINA_DEV_BOT }}
env:
release_token: ${{ secrets.CAS_RELEASE_TOKEN }}
- name: Build and push docker
uses: benc-uk/workflow-dispatch@v1
with:
workflow: Manual Docker Build
inputs: '{ "release_token": "${{ env.release_token }}", "triggered_by": "MANUAL"}'
token: ${{ secrets.JINA_DEV_BOT }}
env:
release_token: ${{ secrets.CAS_RELEASE_TOKEN }}

hub-release:
needs: token-check
runs-on: ubuntu-latest
steps:
- name: upload executors to hub
uses: benc-uk/workflow-dispatch@v1
with:
workflow: Manual Hub Push
inputs: '{ "release_token": "${{ env.release_token }}", "triggered_by": "MANUAL"}'
token: ${{ secrets.JINA_DEV_BOT }}
env:
release_token: ${{ secrets.CAS_RELEASE_TOKEN }}
29 changes: 29 additions & 0 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,35 @@ jobs:
env:
release_token: ${{ secrets.CAS_RELEASE_TOKEN }}

update-docker:
needs: update-doc
runs-on: ubuntu-latest
steps:
- name: CAS Docker Build
uses: benc-uk/workflow-dispatch@v1
with:
workflow: Manual CAS Docker Build
inputs: '{ "release_token": "${{ env.release_token }}", "triggered_by": "TAG"}'
token: ${{ secrets.JINA_DEV_BOT }}
env:
release_token: ${{ secrets.CAS_RELEASE_TOKEN }}
- name: Helm Executor Build
uses: benc-uk/workflow-dispatch@v1
with:
workflow: Manual Docker Build
inputs: '{ "release_token": "${{ env.release_token }}", "triggered_by": "TAG"}'
token: ${{ secrets.JINA_DEV_BOT }}
env:
release_token: ${{ secrets.CAS_RELEASE_TOKEN }}
- name: Hub Executor Build
uses: benc-uk/workflow-dispatch@v1
with:
workflow: Manual Hub Push
inputs: '{ "release_token": "${{ env.release_token }}", "triggered_by": "TAG"}'
token: ${{ secrets.JINA_DEV_BOT }}
env:
release_token: ${{ secrets.CAS_RELEASE_TOKEN }}

create-release:
needs: update-doc
runs-on: ubuntu-latest
Expand Down

0 comments on commit a0c2661

Please sign in to comment.