Skip to content

Commit

Permalink
fix: docker release cd (#717)
Browse files Browse the repository at this point in the history
* fix: add docker build for cd

* fix: release docker
  • Loading branch information
numb3r3 committed May 12, 2022
1 parent 71d2c86 commit 1002a91
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .github/workflows/cd.yml
Expand Up @@ -125,3 +125,11 @@ jobs:
env:
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
- name: Build and push docker (.devN)
uses: benc-uk/workflow-dispatch@v1
with:
workflow: Manual Docker Build
inputs: '{ "release_token": "${{ env.release_token }}", "triggered_by": "CD"}'
token: ${{ secrets.JINA_DEV_BOT }}
env:
release_token: ${{ secrets.CAS_RELEASE_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/force-docker-build.yml
Expand Up @@ -98,7 +98,7 @@ jobs:
docker run --rm --privileged tonistiigi/binfmt --install all
- name: CPU Build and push
id: base_docker_build
if: ${{ matrix.engine_tag == '' }} && ${{ matrix.pip_tag != 'tensorrt' }}
if: ${{ matrix.engine_tag == '' && matrix.pip_tag != 'tensorrt' }}
uses: docker/build-push-action@v2
with:
context: .
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/force-release.yml
Expand Up @@ -47,3 +47,16 @@ jobs:
github_token: ${{ secrets.JINA_DEV_BOT }}
tags: true
branch: main

docker-release:
- needs: token-check
runs-on: ubuntu-latest
steps:
- 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 }}

0 comments on commit 1002a91

Please sign in to comment.