Skip to content
This repository was archived by the owner on Oct 14, 2020. It is now read-only.

Commit 8eaa4ec

Browse files
committed
Run tests with the images of the current commit
1 parent e51e8ac commit 8eaa4ec

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ jobs:
6060
password: ${{ secrets.DOCKER_PASSWORD }}
6161
repository: scbexperimental/operator
6262
tag_with_ref: true
63+
tag_with_sha: true
6364
path: ./operator/
6465
lurcher:
6566
name: "Build / Lurcher"
@@ -81,6 +82,7 @@ jobs:
8182
password: ${{ secrets.DOCKER_PASSWORD }}
8283
repository: scbexperimental/lurcher
8384
tag_with_ref: true
85+
tag_with_sha: true
8486
path: ./lurcher/
8587
parserImages:
8688
name: "Build / Parsers"
@@ -211,9 +213,17 @@ jobs:
211213
kubectl get node
212214
- name: "Install Operator"
213215
run: |
214-
kubectl create namespace securecodebox-system
216+
# Namespace in which the scans for the tests will be executed
215217
kubectl create namespace integration-tests
216-
helm -n securecodebox-system install securecodebox-operator ./operator/ --wait
218+
219+
# Operator Namespace
220+
kubectl create namespace securecodebox-system
221+
helm -n securecodebox-system install securecodebox-operator ./operator/ --wait \\
222+
# Use the image of the current commit
223+
--set="image.tag=sha-$(git rev-parse --short HEAD)" \\
224+
--set="image.digest=null" \\
225+
--set="image.lurcher.tag=sha-$(git rev-parse --short HEAD)" \\
226+
--set="image.lurcher.digest=null"
217227
- name: "Inspect Operator"
218228
run: |
219229
echo "Deployment in namspace 'securecodebox-system'"

0 commit comments

Comments
 (0)