Skip to content

Commit

Permalink
download wheel for dockerhub build
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristoGrab committed Nov 20, 2024
1 parent 0c69f29 commit 7d10d13
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
13 changes: 12 additions & 1 deletion .github/workflows/pypi_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,13 @@ jobs:
echo "Version set to ${{ github.ref_name }}"
echo "VERSION=${{ github.ref_name }}" >> $GITHUB_ENV
# We need to download the build artifact again because the previous job was on a different runner
- name: Download Build Artifact
uses: actions/download-artifact@v4
with:
name: Packages-${{ github.run_id }}
path: dist

- name: Set up QEMU for multi-platform builds
uses: docker/setup-qemu-action@v3

Expand All @@ -105,13 +112,17 @@ jobs:
fi
echo "No existing tag '$tag' found. Proceeding with publish."
- name: Debug dist directory
run: |
echo "Contents of dist directory before Docker build:"
ls -la dist/
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: |
airbyte/source-declarative-manifest:latest
airbyte/source-declarative-manifest:${{ env.VERSION }}
airbyte/source-declarative-manifest:${{ github.sha }}
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ WORKDIR /airbyte/integration_code

# Copy project files needed for build
COPY pyproject.toml poetry.lock README.md ./
COPY dist/*.whl ./dist/

# Install dependencies - ignore keyring warnings
RUN poetry config virtualenvs.create false \
Expand All @@ -13,6 +14,6 @@ RUN poetry config virtualenvs.create false \
COPY airbyte_cdk ./airbyte_cdk

# Build and install the package
RUN poetry build && pip install dist/*.whl
RUN pip install dist/*.whl

ENTRYPOINT ["poetry", "run", "source-declarative-manifest"]

0 comments on commit 7d10d13

Please sign in to comment.