Skip to content
This repository has been archived by the owner on Oct 19, 2023. It is now read-only.

Commit

Permalink
ci: add langflow push workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
deepankarm committed May 16, 2023
1 parent 53ccbf9 commit 06eccf9
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/langflow-push.yml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit 06eccf9

Please sign in to comment.