Skip to content

Commit

Permalink
Add build for dev image
Browse files Browse the repository at this point in the history
  • Loading branch information
mrchtr committed Jan 23, 2024
1 parent cafbb26 commit 59566df
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
pull_request:
workflow_dispatch:

env:
Expand Down Expand Up @@ -53,3 +54,6 @@ jobs:

- name: Build components
run: ./scripts/build_components.sh --cache -t $GITHUB_SHA -t dev

- name: Build base image
run: ./scripts/build_base_image.sh -t dev
28 changes: 25 additions & 3 deletions .github/workflows/prep-release.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: [TEST RUN] Pushing fondant base image
name: Build Python 🐍 distributions 📦 and publish to TestPyPI
on:
push:
branches:
- "feature/build-fondant-base-image"
tags:
- '[0-9]+.[0-9]+.*[0-9]+*'

env:
AWS_REGION : us-east-1
Expand Down Expand Up @@ -56,5 +56,27 @@ jobs:
with:
registry-type: public

- name: Build components
run: ./scripts/build_components.sh -t $GITHUB_REF_NAME

- name: Build data explorer
run: ./scripts/build_explorer.sh -t $GITHUB_REF_NAME

- name: Build base image
run: ./scripts/build_base_image.sh -t $GITHUB_REF_NAME

- name: Update version in pyproject.toml with tag version
run: sed -i "s/^version = .*/version = '${{github.ref_name}}'/" pyproject.toml

- name: Build a binary wheel and a source tarball
run: |
pip install poetry
./scripts/pre-build.sh
poetry build
- name: Publish distribution 📦 to Test PyPI
uses: pypa/[email protected]
with:
name: testpypi
repository_url: https://test.pypi.org/legacy/
url: https://test.pypi.org/p/fondant

0 comments on commit 59566df

Please sign in to comment.