File tree 1 file changed +12
-3
lines changed
1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -78,11 +78,12 @@ jobs:
78
78
git diff --exit-code -I'^ createdAt: ' bundle
79
79
80
80
kubernetes-integration-tests :
81
- name : Kubernetes Integration Tests (Go ${{ matrix.go }} - amd64)
81
+ name : Kubernetes Integration Tests (Go ${{ matrix.go }} - amd64 - ${{ matrix.oci_bin }} )
82
82
runs-on : ubuntu-latest
83
83
strategy :
84
84
matrix :
85
85
go : ['1.22']
86
+ oci_bin : ['docker', 'podman']
86
87
env :
87
88
BPFMAN_AGENT_IMG : quay.io/bpfman/bpfman-agent:int-test
88
89
BPFMAN_OPERATOR_IMG : quay.io/bpfman/bpfman-operator:int-test
@@ -120,11 +121,19 @@ jobs:
120
121
with :
121
122
fetch-depth : 0
122
123
123
- - name : Build Operator and Agent images
124
+ - name : Install OCI runtime (Docker or Podman)
124
125
run : |
125
- make build-images
126
+ if [ "${{ matrix.oci_bin }}" = "podman" ]; then
127
+ sudo apt-get update && sudo apt-get install -y podman
128
+ fi
126
129
130
+ - name : Build Operator and Agent images with ${{ matrix.oci_bin }}
131
+ run : |
132
+ make OCI_BIN=${{ matrix.oci_bin }} build-images
133
+
134
+ # Run integration tests only if OCI_BIN is Docker.
127
135
- name : Run integration tests
136
+ if : ${{ matrix.oci_bin == 'docker' }}
128
137
run : |
129
138
make test-integration
130
139
You can’t perform that action at this time.
0 commit comments