Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add Podman validation to the build-images step #130

Merged
Merged
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
15 changes: 12 additions & 3 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,12 @@ jobs:
git diff --exit-code -I'^ createdAt: ' bundle

kubernetes-integration-tests:
name: Kubernetes Integration Tests (Go ${{ matrix.go }} - amd64)
name: Kubernetes Integration Tests (Go ${{ matrix.go }} - amd64 - ${{ matrix.oci_bin }})
runs-on: ubuntu-latest
strategy:
matrix:
go: ['1.22']
oci_bin: ['docker', 'podman']
env:
BPFMAN_AGENT_IMG: quay.io/bpfman/bpfman-agent:int-test
BPFMAN_OPERATOR_IMG: quay.io/bpfman/bpfman-operator:int-test
Expand Down Expand Up @@ -120,11 +121,19 @@ jobs:
with:
fetch-depth: 0

- name: Build Operator and Agent images
- name: Install OCI runtime (Docker or Podman)
run: |
make build-images
if [ "${{ matrix.oci_bin }}" = "podman" ]; then
sudo apt-get update && sudo apt-get install -y podman
fi

- name: Build Operator and Agent images with ${{ matrix.oci_bin }}
run: |
make OCI_BIN=${{ matrix.oci_bin }} build-images

# Run integration tests only if OCI_BIN is Docker.
- name: Run integration tests
if: ${{ matrix.oci_bin == 'docker' }}
run: |
make test-integration

Expand Down
Loading