Skip to content

Commit

Permalink
chore: run IT during builds
Browse files Browse the repository at this point in the history
Signed-off-by: Ruben Romero Montes <rromerom@redhat.com>
  • Loading branch information
ruromero committed Jan 19, 2024
1 parent 4259b16 commit 467632b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
17 changes: 16 additions & 1 deletion .tekton/exhort-cve-service-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,21 @@ spec:
workspaces:
- name: source
workspace: workspace
- name: run-tests
runAfter:
- prefetch-dependencies
taskSpec:
steps:
- image: registry.redhat.io/quarkus/mandrel-23-rhel8:23.0
name: builder
workingDir: $(workspaces.source.path)/source
script: ./mvnw verify -Pnative -Dquarkus.redis.hosts=redis://localhost/ -Dquarkus.native.native-image-xmx=8g
sidecars:
- image: docker.io/redis/redis-stack:7.2.0-v7
name: redis-stack
workspaces:
- name: source
workspace: workspace
- name: build-container
params:
- name: IMAGE
Expand All @@ -214,7 +229,7 @@ spec:
- name: COMMIT_SHA
value: $(tasks.clone-repository.results.commit)
runAfter:
- prefetch-dependencies
- run-tests
taskRef:
params:
- name: name
Expand Down
2 changes: 1 addition & 1 deletion src/main/docker/Dockerfile.multi-stage
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ USER quarkus
WORKDIR /code
RUN ./mvnw -B org.apache.maven.plugins:maven-dependency-plugin:3.6.1:go-offline
COPY --chown=quarkus:quarkus src /code/src
RUN ./mvnw verify -B -Pnative -DskipTests=true
RUN ./mvnw package -B -Pnative -DskipTests=true

## Stage 2 : create the docker final image
FROM registry.access.redhat.com/ubi9/ubi-minimal:9.3
Expand Down

0 comments on commit 467632b

Please sign in to comment.