From 42b186767add346591925c93215ff9d65abc1097 Mon Sep 17 00:00:00 2001 From: Matthias Benkard Date: Mon, 9 Jan 2023 09:50:57 +0000 Subject: Add GitLab CI pipeline. --- .gitlab-ci.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..3f0dba2 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,24 @@ +stages: + - check + +image: maven:3-openjdk-17 + +verify: + stage: check + script: + - mvn verify + +sast: + stage: check + +cache: + key: $CI_JOB_NAME + paths: + - .m2/repository + +variables: + MAVEN_OPTS: "-Dmaven.repo.local=.m2/repository" + MAVEN_CLI_OPTS: "--batch-mode --errors" + +include: + - template: Security/SAST.gitlab-ci.yml -- cgit v1.2.3 From ebd3c3c4b9fc2707ea3932e7a66ae3586a6d90b3 Mon Sep 17 00:00:00 2001 From: Matthias Benkard Date: Mon, 9 Jan 2023 13:55:19 +0000 Subject: CI: Add Yarn. --- .gitlab-ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3f0dba2..523e341 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,6 +6,8 @@ image: maven:3-openjdk-17 verify: stage: check script: + - apt-get update + - apt-get -y --no-install-recommends yarn - mvn verify sast: -- cgit v1.2.3 From 8c11ae727020843f421e83f577805671109b42dd Mon Sep 17 00:00:00 2001 From: Matthias Benkard Date: Mon, 9 Jan 2023 15:58:47 +0000 Subject: CI: Use maven:3-eclipse-temurin image. --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 523e341..58235ed 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,7 +1,7 @@ stages: - check -image: maven:3-openjdk-17 +image: docker.io/library/maven:3-eclipse-temurin-17 verify: stage: check -- cgit v1.2.3 From 2480d1d2ee08418e58818cc9c7a6359db67aa3c9 Mon Sep 17 00:00:00 2001 From: Matthias Benkard Date: Mon, 9 Jan 2023 16:43:01 +0000 Subject: CI: Fix APT installation command. --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 58235ed..7640bc3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -7,7 +7,7 @@ verify: stage: check script: - apt-get update - - apt-get -y --no-install-recommends yarn + - apt-get -y --no-install-recommends install yarn - mvn verify sast: -- cgit v1.2.3 From 04e17c62d2f6dbd9a0c2df6531947899cd0b8957 Mon Sep 17 00:00:00 2001 From: Matthias Benkard Date: Mon, 9 Jan 2023 16:44:02 +0000 Subject: CI: Fix yarnpkg package name. --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7640bc3..95fa451 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -7,7 +7,7 @@ verify: stage: check script: - apt-get update - - apt-get -y --no-install-recommends install yarn + - apt-get -y --no-install-recommends install yarnpkg - mvn verify sast: -- cgit v1.2.3 From c9d0dd237712e6f8fd6b6c0e367d5819d575de79 Mon Sep 17 00:00:00 2001 From: Matthias Benkard Date: Mon, 9 Jan 2023 18:41:19 +0000 Subject: CI: Use maven:3-eclipse-temurin-17-alpine. --- .gitlab-ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 95fa451..74c6ea0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,13 +1,13 @@ stages: - check -image: docker.io/library/maven:3-eclipse-temurin-17 +image: docker.io/library/maven:3-eclipse-temurin-17-alpine verify: stage: check script: - - apt-get update - - apt-get -y --no-install-recommends install yarnpkg + - apk update + - apk add yarn - mvn verify sast: -- cgit v1.2.3 From fa1fdbe6bd1f5eb21ad1e74bee48c191510f3699 Mon Sep 17 00:00:00 2001 From: Matthias Benkard Date: Tue, 10 Jan 2023 17:47:28 +0000 Subject: CI: Update Docker image to maven:3-eclipse-temurin-19-alpine. --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 74c6ea0..e008770 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,7 +1,7 @@ stages: - check -image: docker.io/library/maven:3-eclipse-temurin-17-alpine +image: docker.io/library/maven:3-eclipse-temurin-19-alpine verify: stage: check -- cgit v1.2.3 From a311d3974db197e3f5c3c74c368b2fe3450e8f66 Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Sat, 14 Jan 2023 10:21:59 +0100 Subject: CI: Cache static assets. Change-Id: I3e74623513c592c0ddad37a29fc0e1c5f5bf88ab --- .gitlab-ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e008770..69f51ac 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -17,6 +17,8 @@ cache: key: $CI_JOB_NAME paths: - .m2/repository + - src/main/resources/META-INF/resources/.parcel-cache + - src/main/resources/META-INF/resources/node_modules variables: MAVEN_OPTS: "-Dmaven.repo.local=.m2/repository" -- cgit v1.2.3