Skip to content
Open
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
17 changes: 14 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,30 @@ jobs:
exit 1
fi
echo "Tag is $TAG"
echo "::set-output name=tag::$TAG"
echo "tag=$TAG" >> $GITHUB_OUTPUT
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
- name: Login to DockerHub
uses: docker/login-action@v4
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push Docker image to registry
- name: Build Docker image
uses: docker/build-push-action@v7
with:
context: .
load: true
tags: p4lang/pi:${{ steps.get-tag.outputs.tag }}
cache-from: type=gha
# A cache write must not fail the build.
cache-to: type=gha,mode=max,ignore-error=true
- name: Smoke test Docker image
run: |
docker run --rm p4lang/pi:${{ steps.get-tag.outputs.tag }} pi_convert_p4info -h
- name: Push Docker image to registry
uses: docker/build-push-action@v7
with:
context: .
push: true
tags: p4lang/pi:${{ steps.get-tag.outputs.tag }}
cache-from: type=gha
cache-to: type=gha,mode=max
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ ENV PI_DEPS automake \
libboost-thread-dev \
libtool \
pkg-config
ENV PI_RUNTIME_DEPS libboost-system1.74.0 \
libboost-thread1.74.0 \
ENV PI_RUNTIME_DEPS libboost-system1.83.0 \
libboost-thread1.83.0 \
python3 \
python-is-python3

Expand Down
Loading