2021-05-17 07:28:01 +00:00
|
|
|
stages:
|
|
|
|
- build_and_test
|
|
|
|
- package
|
|
|
|
- security
|
|
|
|
- upload
|
|
|
|
|
|
|
|
.cljs-job: &cljs
|
2024-07-04 10:11:39 +00:00
|
|
|
image: "domaindrivenarchitecture/ddadevops-clj-cljs:4.11.3"
|
2021-05-17 07:28:01 +00:00
|
|
|
cache:
|
|
|
|
key: ${CI_COMMIT_REF_SLUG}
|
|
|
|
paths:
|
|
|
|
- node_modules/
|
|
|
|
- .shadow-cljs/
|
|
|
|
- .m2
|
|
|
|
before_script:
|
2024-07-04 10:11:39 +00:00
|
|
|
- export RELEASE_ARTIFACT_TOKEN=$MEISSA_REPO_BUERO_RW
|
|
|
|
- echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc
|
|
|
|
- npm install
|
2021-05-17 07:28:01 +00:00
|
|
|
|
|
|
|
.clj-uploadjob: &clj
|
2024-07-04 10:11:39 +00:00
|
|
|
image: "domaindrivenarchitecture/ddadevops-clj:4.11.3"
|
2021-05-17 07:28:01 +00:00
|
|
|
cache:
|
|
|
|
key: ${CI_COMMIT_REF_SLUG}
|
|
|
|
paths:
|
|
|
|
- .m2
|
|
|
|
before_script:
|
2024-07-04 10:11:39 +00:00
|
|
|
- export RELEASE_ARTIFACT_TOKEN=$MEISSA_REPO_BUERO_RW
|
|
|
|
- mkdir -p /root/.lein
|
|
|
|
- echo "{:auth {:repository-auth {#\"clojars\" {:username \"${CLOJARS_USER}\" :password \"${CLOJARS_TOKEN_DOMAINDRIVENARCHITECTURE}\" }}}}" > ~/.lein/profiles.clj
|
2021-05-17 07:28:01 +00:00
|
|
|
|
2024-07-04 10:24:57 +00:00
|
|
|
.tag_only: &tag_only
|
|
|
|
rules:
|
|
|
|
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
|
|
|
|
when: never
|
|
|
|
- if: '$CI_COMMIT_TAG =~ /^[0-9]+\.[0-9]+\.[0-9]+$/'
|
|
|
|
|
2024-07-04 10:11:39 +00:00
|
|
|
test-clj:
|
|
|
|
<<: *clj
|
2021-05-17 07:28:01 +00:00
|
|
|
stage: build_and_test
|
|
|
|
script:
|
2024-07-04 10:11:39 +00:00
|
|
|
- pyb test_clj
|
2021-05-17 07:28:01 +00:00
|
|
|
|
2024-07-04 10:11:39 +00:00
|
|
|
test-cljs:
|
|
|
|
<<: *cljs
|
2021-05-17 07:28:01 +00:00
|
|
|
stage: build_and_test
|
|
|
|
script:
|
2024-07-04 10:11:39 +00:00
|
|
|
- pyb test_cljs
|
2021-05-17 07:28:01 +00:00
|
|
|
|
2021-05-28 15:54:59 +00:00
|
|
|
test-schema:
|
|
|
|
<<: *clj
|
|
|
|
stage: build_and_test
|
|
|
|
script:
|
2024-07-04 10:11:39 +00:00
|
|
|
- pyb test_schema
|
2021-05-28 15:54:59 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- target/uberjar
|
|
|
|
|
2021-06-18 09:50:10 +00:00
|
|
|
report-frontend:
|
2021-05-17 07:28:01 +00:00
|
|
|
<<: *cljs
|
|
|
|
stage: package
|
|
|
|
script:
|
2024-07-04 10:11:39 +00:00
|
|
|
- pyb report_frontend
|
2021-05-17 07:28:01 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- target/frontend-build/build-report.html
|
|
|
|
|
2021-06-18 09:50:10 +00:00
|
|
|
package-frontend:
|
2021-05-17 07:28:01 +00:00
|
|
|
<<: *cljs
|
|
|
|
stage: package
|
|
|
|
script:
|
2024-07-04 10:11:39 +00:00
|
|
|
- pyb package_frontend
|
2021-05-17 07:28:01 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- target/frontend-build
|
|
|
|
|
|
|
|
package-uberjar:
|
|
|
|
<<: *clj
|
|
|
|
stage: package
|
|
|
|
script:
|
2024-07-04 10:11:39 +00:00
|
|
|
- pyb package_uberjar
|
2021-05-17 07:28:01 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- target/uberjar
|
|
|
|
|
2024-07-04 10:11:39 +00:00
|
|
|
package-native:
|
|
|
|
<<: *clj
|
|
|
|
stage: package
|
|
|
|
script:
|
|
|
|
- pyb package_native
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- target/graalvm
|
2021-05-17 07:28:01 +00:00
|
|
|
|
2024-07-04 10:11:39 +00:00
|
|
|
release-to-clojars:
|
2021-05-17 07:28:01 +00:00
|
|
|
<<: *clj
|
2024-07-04 10:11:39 +00:00
|
|
|
<<: *tag_only
|
2021-05-17 07:28:01 +00:00
|
|
|
stage: upload
|
|
|
|
script:
|
2024-07-04 10:11:39 +00:00
|
|
|
- pyb upload_clj
|
2021-05-17 07:28:01 +00:00
|
|
|
|
2024-07-04 10:11:39 +00:00
|
|
|
release-to-forgejo:
|
|
|
|
<<: *clj
|
|
|
|
<<: *tag_only
|
2021-05-17 07:28:01 +00:00
|
|
|
stage: upload
|
|
|
|
script:
|
2024-07-04 10:11:39 +00:00
|
|
|
- pyb publish_artifacts
|