From b9fea47dd13f4fd9af88ac7c85cc1a903e1e3fdc Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Fri, 29 Dec 2023 10:46:39 -0300 Subject: [PATCH 1/2] Update .dockerignore file --- .dockerignore | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.dockerignore b/.dockerignore index 9527e22f6..130ca4c2c 100644 --- a/.dockerignore +++ b/.dockerignore @@ -2,4 +2,6 @@ **/aws # node_modules **/node_modules/ -dist/ \ No newline at end of file +dist/ +**/build/ +src/backend/langflow/frontend \ No newline at end of file From 41a7911f05f198433d681ccfbee0a17b94b3849c Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Fri, 29 Dec 2023 10:49:40 -0300 Subject: [PATCH 2/2] Add QEMU, Docker Buildx, and Docker Hub integration --- .github/workflows/release.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 908c5fc51..b14fbc17b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -45,3 +45,21 @@ jobs: POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_API_TOKEN }} run: | poetry publish + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Build and push + uses: docker/build-push-action@v5 + with: + context: . + push: true + file: ./build_and_push.Dockerfile + tags: | + logspace/langflow:${{ steps.check-version.outputs.version }} + logspace/langflow:latest