Align maven parameters across GitHub actions (#25117)
Closes #25116 Signed-off-by: Alexander Schwartz <aschwart@redhat.com>
This commit is contained in:
parent
1eadaba084
commit
672cef89d2
7 changed files with 23 additions and 10 deletions
3
.github/actions/build-keycloak/action.yml
vendored
3
.github/actions/build-keycloak/action.yml
vendored
|
@ -61,8 +61,7 @@ runs:
|
||||||
shell: bash
|
shell: bash
|
||||||
# By using "dependency:resolve", it will download all dependencies used in later stages for running the tests
|
# By using "dependency:resolve", it will download all dependencies used in later stages for running the tests
|
||||||
run: |
|
run: |
|
||||||
MVN_HTTP_CONFIG="-Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.class=standard -Dmaven.wagon.http.retryHandler.count=3 -Dmaven.wagon.httpconnectionManager.ttlSeconds=120"
|
./mvnw install dependency:resolve -V -e -DskipTests -DskipExamples ${{ env.MVN_PROFILES}}
|
||||||
./mvnw install dependency:resolve -nsu -V -B -e -DskipTests -DskipExamples $MVN_HTTP_CONFIG ${{ env.MVN_PROFILES}}
|
|
||||||
|
|
||||||
- id: compress-keycloak-maven-repository
|
- id: compress-keycloak-maven-repository
|
||||||
name: Compress Keycloak Maven artifacts
|
name: Compress Keycloak Maven artifacts
|
||||||
|
|
3
.github/workflows/codeql-analysis.yml
vendored
3
.github/workflows/codeql-analysis.yml
vendored
|
@ -9,6 +9,9 @@ on:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
env:
|
||||||
|
MAVEN_ARGS: "-B -nsu -Daether.connector.http.connectionMaxTtl=25"
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
# Only cancel jobs for PR updates
|
# Only cancel jobs for PR updates
|
||||||
group: codeql-analysis-${{ github.ref }}
|
group: codeql-analysis-${{ github.ref }}
|
||||||
|
|
9
.github/workflows/documentation.yml
vendored
9
.github/workflows/documentation.yml
vendored
|
@ -8,6 +8,9 @@ on:
|
||||||
pull_request:
|
pull_request:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
env:
|
||||||
|
MAVEN_ARGS: "-B -nsu -Daether.connector.http.connectionMaxTtl=25"
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
# Only cancel jobs for PR updates
|
# Only cancel jobs for PR updates
|
||||||
group: documentation-${{ github.ref }}
|
group: documentation-${{ github.ref }}
|
||||||
|
@ -52,8 +55,7 @@ jobs:
|
||||||
name: Build and verify Keycloak documentation
|
name: Build and verify Keycloak documentation
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
MVN_HTTP_CONFIG="-Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.class=standard -Dmaven.wagon.http.retryHandler.count=3 -Dmaven.wagon.httpconnectionManager.ttlSeconds=120"
|
./mvnw install -Dtest=!ExternalLinksTest -am -pl docs/documentation/tests,docs/documentation/dist -e -Pdocumentation
|
||||||
./mvnw install -Dtest=!ExternalLinksTest -am -pl docs/documentation/tests,docs/documentation/dist -nsu -B -e $MVN_HTTP_CONFIG -Pdocumentation
|
|
||||||
|
|
||||||
- id: upload-keycloak-documentation
|
- id: upload-keycloak-documentation
|
||||||
name: Upload Keycloak documentation
|
name: Upload Keycloak documentation
|
||||||
|
@ -83,8 +85,7 @@ jobs:
|
||||||
name: Build and verify Keycloak documentation
|
name: Build and verify Keycloak documentation
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
MVN_HTTP_CONFIG="-Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.class=standard -Dmaven.wagon.http.retryHandler.count=3 -Dmaven.wagon.httpconnectionManager.ttlSeconds=120"
|
./mvnw install -Dtest=ExternalLinksTest -am -pl docs/documentation/tests -e -Pdocumentation
|
||||||
./mvnw install -Dtest=ExternalLinksTest -am -pl docs/documentation/tests -nsu -B -e -Pdocumentation $MVN_HTTP_CONFIG
|
|
||||||
|
|
||||||
check:
|
check:
|
||||||
name: Status Check - Keycloak Documentation
|
name: Status Check - Keycloak Documentation
|
||||||
|
|
3
.github/workflows/guides.yml
vendored
3
.github/workflows/guides.yml
vendored
|
@ -8,6 +8,9 @@ on:
|
||||||
pull_request:
|
pull_request:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
env:
|
||||||
|
MAVEN_ARGS: "-B -nsu -Daether.connector.http.connectionMaxTtl=25"
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
# Only cancel jobs for PR updates
|
# Only cancel jobs for PR updates
|
||||||
group: guides-${{ github.ref }}
|
group: guides-${{ github.ref }}
|
||||||
|
|
5
.github/workflows/js-ci.yml
vendored
5
.github/workflows/js-ci.yml
vendored
|
@ -8,6 +8,9 @@ on:
|
||||||
pull_request:
|
pull_request:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
env:
|
||||||
|
MAVEN_ARGS: "-B -nsu -Daether.connector.http.connectionMaxTtl=25"
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
# Only cancel jobs for PR updates
|
# Only cancel jobs for PR updates
|
||||||
group: js-ci-${{ github.ref }}
|
group: js-ci-${{ github.ref }}
|
||||||
|
@ -49,7 +52,7 @@ jobs:
|
||||||
|
|
||||||
- name: Build Keycloak
|
- name: Build Keycloak
|
||||||
run: |
|
run: |
|
||||||
./mvnw clean install --batch-mode --errors -DskipTests -DskipTestsuite -DskipExamples -Pdistribution
|
./mvnw clean install --errors -DskipTests -DskipTestsuite -DskipExamples -Pdistribution
|
||||||
mv ./quarkus/dist/target/keycloak-999.0.0-SNAPSHOT.tar.gz ./keycloak-999.0.0-SNAPSHOT.tar.gz
|
mv ./quarkus/dist/target/keycloak-999.0.0-SNAPSHOT.tar.gz ./keycloak-999.0.0-SNAPSHOT.tar.gz
|
||||||
|
|
||||||
- name: Upload Keycloak dist
|
- name: Upload Keycloak dist
|
||||||
|
|
5
.github/workflows/operator-ci.yml
vendored
5
.github/workflows/operator-ci.yml
vendored
|
@ -9,6 +9,7 @@ on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
|
MAVEN_ARGS: "-B -nsu -Daether.connector.http.connectionMaxTtl=25"
|
||||||
MINIKUBE_VERSION: v1.31.2
|
MINIKUBE_VERSION: v1.31.2
|
||||||
KUBERNETES_VERSION: v1.24.17 # OCP 4.11
|
KUBERNETES_VERSION: v1.24.17 # OCP 4.11
|
||||||
|
|
||||||
|
@ -88,7 +89,7 @@ jobs:
|
||||||
|
|
||||||
- name: Test operator running locally
|
- name: Test operator running locally
|
||||||
run: |
|
run: |
|
||||||
./mvnw install --batch-mode -Poperator -pl :keycloak-operator -am \
|
./mvnw install -Poperator -pl :keycloak-operator -am \
|
||||||
-Dquarkus.kubernetes.image-pull-policy=IfNotPresent \
|
-Dquarkus.kubernetes.image-pull-policy=IfNotPresent \
|
||||||
-Doperator.keycloak.image=keycloak:${{ env.version_local }} \
|
-Doperator.keycloak.image=keycloak:${{ env.version_local }} \
|
||||||
-Dtest.operator.custom.image=custom-keycloak:${{ env.version_local }} \
|
-Dtest.operator.custom.image=custom-keycloak:${{ env.version_local }} \
|
||||||
|
@ -134,7 +135,7 @@ jobs:
|
||||||
- name: Test operator running in cluster
|
- name: Test operator running in cluster
|
||||||
run: |
|
run: |
|
||||||
eval $(minikube -p minikube docker-env)
|
eval $(minikube -p minikube docker-env)
|
||||||
./mvnw install --batch-mode -Poperator -pl :keycloak-operator -am \
|
./mvnw install -Poperator -pl :keycloak-operator -am \
|
||||||
-Dquarkus.container-image.build=true \
|
-Dquarkus.container-image.build=true \
|
||||||
-Dquarkus.kubernetes.image-pull-policy=IfNotPresent \
|
-Dquarkus.kubernetes.image-pull-policy=IfNotPresent \
|
||||||
-Doperator.keycloak.image=keycloak:${{ env.version_remote }} \
|
-Doperator.keycloak.image=keycloak:${{ env.version_remote }} \
|
||||||
|
|
5
.github/workflows/snyk-analysis.yml
vendored
5
.github/workflows/snyk-analysis.yml
vendored
|
@ -3,6 +3,9 @@ name: Snyk
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
env:
|
||||||
|
MAVEN_ARGS: "-B -nsu -Daether.connector.http.connectionMaxTtl=25"
|
||||||
|
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
@ -34,7 +37,7 @@ jobs:
|
||||||
|
|
||||||
- name: Check for vulnerabilities in Operator
|
- name: Check for vulnerabilities in Operator
|
||||||
run: |
|
run: |
|
||||||
./mvnw -Poperator -pl operator -am -DskipTests clean install --batch-mode
|
./mvnw -Poperator -pl operator -am -DskipTests clean install
|
||||||
snyk test --policy-path=${GITHUB_WORKSPACE}/.github/snyk/.snyk --all-projects --prune-repeated-subdependencies --exclude=tests --sarif-file-output=operator-report.sarif operator
|
snyk test --policy-path=${GITHUB_WORKSPACE}/.github/snyk/.snyk --all-projects --prune-repeated-subdependencies --exclude=tests --sarif-file-output=operator-report.sarif operator
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
env:
|
env:
|
||||||
|
|
Loading…
Reference in a new issue