Skip to content

Commit

Permalink
[ci] Add image build before systemtests
Browse files Browse the repository at this point in the history
  • Loading branch information
obabec authored and jcechace committed Jul 29, 2024
1 parent e33a58b commit 4bbbce0
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .github/actions/build-operator-image/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: "Build Operator Image"
description: "Build Operator Image"

inputs:
shell:
description: "The shell to use"
required: false
default: bash

runs:
using: composite
steps:
- name: Checkout Debezium Operator
uses: actions/checkout@v4
with:
path: operator

- name: Build operator image
working-directory: operator
shell: ${{ inputs.shell }}
run: >
./mvnw package -Dquarkus.container-image.build=true
--no-transfer-progress
-T4
2 changes: 1 addition & 1 deletion .github/actions/build-operator/action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: "Build Operator"
description: "Set up the desired version of Java"
description: "Build operator code"

inputs:
shell:
Expand Down
9 changes: 9 additions & 0 deletions .github/actions/run-systemtests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,17 @@ runs:

- uses: ./operator/.github/actions/build-operator

- uses: ./operator/.github/actions/build-operator-image

- name: Create k8s Kind Cluster
uses: helm/kind-action@v1
with:
cluster_name: debezium-kind

- name: Import operator image
shell: ${{ inputs.shell }}
run: >
kind load docker-image quay.io/debezium/operator:nightly --name debezium-kind
- name: Execute Systemtests
working-directory: operator
Expand Down

0 comments on commit 4bbbce0

Please sign in to comment.