Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,11 @@ jobs:
context: .
push: true
tags: p4lang/third-party:${{ steps.get-tag.outputs.tag }}
- name: Build and push Dockerfile.24 image if needed
if: ${{ github.repository == 'p4lang/third-party' && github.event_name == 'push' }}
uses: docker/build-push-action@v2
with:
context: .
file: Dockerfile.24
push: true
tags: p4lang/third-party:${{ steps.get-tag.outputs.tag }}-24
5 changes: 1 addition & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -194,11 +194,8 @@ WORKDIR /grpc/
RUN export PYTHON3_VERSION=`python3 -c 'import sys; version=sys.version_info[:3]; print("python{0}.{1}".format(*version))'` && \
echo "import site; site.addsitedir('/usr/local/lib/$PYTHON3_VERSION/site-packages')" \
> /usr/local/lib/$PYTHON3_VERSION/dist-packages/use_site_packages.pth
# We don't use `--ignore-installed` here because otherwise we won't use the
# installed version of the protobuf python package that we copied from the
# protobuf build image.
RUN pip3 install --user -rrequirements.txt
RUN env GRPC_PYTHON_BUILD_WITH_CYTHON=1 pip3 install --user --ignore-installed .
RUN pip3 install --user .

# Build libyang
FROM base-builder as libyang
Expand Down
Loading
Loading