diff --git a/.github/workflows/langflow-push.yml b/.github/workflows/langflow-push.yml new file mode 100644 index 00000000..fae65767 --- /dev/null +++ b/.github/workflows/langflow-push.yml @@ -0,0 +1,52 @@ +name: Push Langflow image to JAC + +on: + workflow_dispatch: + inputs: + push_token: + description: Token to push the image + required: true + branch: + description: Pass the branch + required: false + default: dev + +env: + POETRY_VERSION: "1.4.0" + +jobs: + token-check: + runs-on: ubuntu-latest + steps: + - uses: actions/github-script@v3 + with: + script: | + core.setFailed('token are not equivalent!') + if: github.event.inputs.push_token != env.push_token + env: + push_token: ${{ secrets.LANGFLOW_PUSH_TOKEN }} + + build-and-push: + needs: token-check + runs-on: ubuntu-latest + steps: + - name: Checkout logspace-ai/langflow + uses: actions/checkout@v2 + with: + repository: logspace-ai/langflow + ref: ${{ github.event.inputs.branch }} + + - name: Install poetry + run: pipx install poetry==$POETRY_VERSION + + - name: Set up Python 3.10 + uses: actions/setup-python@v4 + with: + python-version: "3.10" + cache: "poetry" + + - name: Build and push to Hubble + run: | + make lcserve_push + env: + JINA_AUTH_TOKEN: ${{ secrets.DEEPANKAR_AUTH_TOKEN }}