This repository has been archived by the owner on Jan 4, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.gitlab-ci.yml
446 lines (424 loc) · 17.4 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
stages:
- Tests
- Documentation
- Release
- Build Release
- Other
variables:
project_name: "$CI_PROJECT_NAME"
SEMANTIC_RELEASE_PACKAGE: "$CI_PROJECT_NAME"
SECURE_ANALYZERS_PREFIX: "registry.gitlab.com/gitlab-org/security-products/analyzers"
SAST_EXCLUDED_ANALYZERS: ""
SAST_EXCLUDED_PATHS: "spec, test, tests, tmp"
SCAN_KUBERNETES_MANIFESTS: "false"
SECRETS_ANALYZER_VERSION: "3"
SECRET_DETECTION_EXCLUDED_PATHS: ""
services:
- name: griefed/gitlab-ci-cd:2.0.8
alias: docker
workflow:
rules:
- if: '$CI_MERGE_REQUEST_EVENT_TYPE == "detached"'
when: never
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
when: never
- when: always
sast:
stage: Tests
artifacts:
reports:
sast: gl-sast-report.json
rules:
- when: never
variables:
SEARCH_MAX_DEPTH: 4
script:
- echo "$CI_JOB_NAME is used for configuration only, and its script should not be executed"
- exit 1
.sast-analyzer:
extends: sast
allow_failure: true
# `rules` must be overridden explicitly by each child job
# see https://gitlab.com/gitlab-org/gitlab/-/issues/218444
script:
- /analyzer run
eslint-sast:
extends: .sast-analyzer
image:
name: "$SAST_ANALYZER_IMAGE"
variables:
SAST_ANALYZER_IMAGE_TAG: 2
SAST_ANALYZER_IMAGE: "$SECURE_ANALYZERS_PREFIX/eslint:$SAST_ANALYZER_IMAGE_TAG"
rules:
- if: $SAST_DISABLED
when: never
- if: $SAST_EXCLUDED_ANALYZERS =~ /eslint/
when: never
- if: $CI_COMMIT_BRANCH
exists:
- '**/*.html'
- '**/*.js'
- '**/*.jsx'
- '**/*.ts'
- '**/*.tsx'
nodejs-scan-sast:
extends: .sast-analyzer
image:
name: "$SAST_ANALYZER_IMAGE"
variables:
SAST_ANALYZER_IMAGE_TAG: 2
SAST_ANALYZER_IMAGE: "$SECURE_ANALYZERS_PREFIX/nodejs-scan:$SAST_ANALYZER_IMAGE_TAG"
rules:
- if: $SAST_DISABLED
when: never
- if: $SAST_EXCLUDED_ANALYZERS =~ /nodejs-scan/
when: never
- if: $CI_COMMIT_BRANCH
exists:
- '**/package.json'
semgrep-sast:
extends: .sast-analyzer
image:
name: "$SAST_ANALYZER_IMAGE"
variables:
SAST_ANALYZER_IMAGE_TAG: 2
SAST_ANALYZER_IMAGE: "$SECURE_ANALYZERS_PREFIX/semgrep:$SAST_ANALYZER_IMAGE_TAG"
rules:
- if: $SAST_DISABLED
when: never
- if: $SAST_EXCLUDED_ANALYZERS =~ /semgrep/
when: never
- if: $CI_COMMIT_BRANCH
exists:
- '**/*.py'
- '**/*.js'
- '**/*.jsx'
- '**/*.ts'
- '**/*.tsx'
- '**/*.c'
- '**/*.go'
.secret-analyzer:
stage: Tests
image: "$SECURE_ANALYZERS_PREFIX/secrets:$SECRETS_ANALYZER_VERSION"
services: []
allow_failure: true
# `rules` must be overridden explicitly by each child job
# see https://gitlab.com/gitlab-org/gitlab/-/issues/218444
artifacts:
reports:
secret_detection: gl-secret-detection-report.json
secret_detection:
extends: .secret-analyzer
rules:
- if: $SECRET_DETECTION_DISABLED
when: never
- if: $CI_COMMIT_BRANCH
script:
- if [ -n "$CI_COMMIT_TAG" ]; then echo "Skipping Secret Detection for tags. No code changes have occurred."; exit 0; fi
- if [ "$CI_COMMIT_BRANCH" = "$CI_DEFAULT_BRANCH" ]; then echo "Running Secret Detection on default branch."; /analyzer run; exit 0; fi
- git fetch origin $CI_DEFAULT_BRANCH $CI_COMMIT_REF_NAME
- git log --left-right --cherry-pick --pretty=format:"%H" refs/remotes/origin/$CI_DEFAULT_BRANCH...refs/remotes/origin/$CI_COMMIT_REF_NAME > "$CI_COMMIT_SHA"_commit_list.txt
- export SECRET_DETECTION_COMMITS_FILE="$CI_COMMIT_SHA"_commit_list.txt
- /analyzer run
- rm "$CI_COMMIT_SHA"_commit_list.txt
Gradle Test:
stage: Tests
image: ghcr.io/griefed/baseimage-ubuntu-jdk-8:2.0.3
before_script:
- echo "**** Running in $CI_JOB_ID ****"
- echo "**** Java location ****"
- which java
- echo "**** Java version ****"
- java -version
- echo "**** Allowing execution of gradlew ****"
- chmod +x gradlew
- echo "**** Ensure clean environment ****"
- "./gradlew clean"
script:
- echo "**** Building REPOSITORY ****"
- "./gradlew build --info --full-stacktrace"
- echo "**** Listing build directory ****"
- LC_COLLATE=C ls -ahl --group-directories-first --color=auto build/jacoco/test
- LC_COLLATE=C ls -ahl --group-directories-first --color=auto build/libs
- cat build/jacoco/test/html/index.html | grep -o 'Total[^%]*%'
- echo "**** Renaming files to please the eye ****"
#- mv build/libs/${CI_PROJECT_NAME}.exe build/libs/ServerPackCreator-$CI_COMMIT_REF_NAME.exe
- mv build/libs/docker-template-repo.jar build/libs/${CI_PROJECT_NAME}-$CI_COMMIT_REF_NAME.jar
coverage: '/Total.*?([0-9]{1,3})%/'
# artifacts:
# paths:
# #- build/libs/${CI_PROJECT_NAME}-$CI_COMMIT_REF_NAME.exe
# - build/libs/${CI_PROJECT_NAME}-$CI_COMMIT_REF_NAME.jar
# - build/jacoco/test/jacocoTestReport.xml
# - build/reports/tests/test
# expire_in: 1 week
#Docker Test:
# stage: Tests
# image: ghcr.io/griefed/gitlab-ci-cd:2.0.0
# before_script:
# - docker login -u "$DOCKERHUB_USER" -p "$DOCKERHUB_TOKEN" docker.io
# - docker login -u "$DOCKERHUB_USER" -p "$GITHUB_TOKEN" ghcr.io
# - docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
# - docker buildx create --use --name grfdbuilder
# script:
# - docker buildx build --no-cache --platform linux/amd64,linux/arm/v7,linux/arm64
# --build-arg BRANCH_OR_TAG=$CI_COMMIT_REF_NAME
# --build-arg HOSTER=$CI_SERVER_HOST
# --file Dockerfile .
# rules:
# - if: '$CI_SERVER_HOST == "git.griefed.de"' # Remove once GitLab no longer throws javax.net.ssl.SSLHandshakeException: Remote host terminated the handshake
#Generate Release:
# stage: Release
# needs:
# - job: Gradle Test
# artifacts: false
# - job: Docker Test
# artifacts: false
# - job: eslint-sast
# artifacts: false
# - job: nodejs-scan-sast
# artifacts: false
# - job: semgrep-sast
# artifacts: false
# - job: secret_detection
# artifacts: false
# image: ghcr.io/griefed/gitlab-ci-cd:2.0.0
# script:
# - npx semantic-release
# rules:
# - if: '$CI_COMMIT_BRANCH == "alpha" && $CI_COMMIT_TITLE !~ /^RELEASE:.+$/ && $CI_SERVER_HOST == "git.griefed.de"'
# - if: '$CI_COMMIT_BRANCH == "beta" && $CI_COMMIT_TITLE !~ /^RELEASE:.+$/ && $CI_SERVER_HOST == "git.griefed.de"'
# - if: '$CI_COMMIT_BRANCH == "main" && $CI_COMMIT_TITLE !~ /^RELEASE:.+$/ && $CI_SERVER_HOST == "git.griefed.de"'
#Build Release:
# stage: Build Release
# image: ghcr.io/griefed/baseimage-ubuntu-jdk-8:2.0.3
# needs:
# - job: release_job
# optional: true
# artifacts: false
# before_script:
# - echo "**** Running in $CI_JOB_ID ****"
# - echo "**** Java location ****"
# - which java
# - echo "**** Java version ****"
# - java -version
# - echo "**** Allowing execution of gradlew ****"
# - chmod +x gradlew
# - echo "**** Ensure clean environment ****"
# - "./gradlew about"
# - echo "version=${CI_COMMIT_TAG}" > backend/main/resources/VERSION.txt
# script:
# - echo "**** Building ServerPackCreator ****"
# - "./gradlew installQuasar cleanFrontend assembleFrontend copyDist build createExe -Pversion=${CI_COMMIT_TAG} --info --full-stacktrace -x test"
# - echo "**** Listing build directory ****"
# - LC_COLLATE=C ls -ahl --group-directories-first --color=auto build
# - LC_COLLATE=C ls -ahl --group-directories-first --color=auto build/libs
# - LC_COLLATE=C ls -ah --group-directories-first --color=auto build/libs/libraries
# - echo "**** Renaming files to please the eye ****"
# - mv build/libs/${CI_PROJECT_NAME}.exe build/libs/${CI_PROJECT_NAME}-${CI_COMMIT_TAG}.exe
# - LC_COLLATE=C ls -ahl --group-directories-first --color=auto build/libs
# - echo "**** Uploading packages ****"
# - 'curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file build/libs/${CI_PROJECT_NAME}-${CI_COMMIT_TAG}.exe
# "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/${CI_PROJECT_NAME}/${CI_COMMIT_TAG}/${CI_PROJECT_NAME}-${CI_COMMIT_TAG}.exe"'
# - 'curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file build/libs/${CI_PROJECT_NAME}-${CI_COMMIT_TAG}.jar
# "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/${CI_PROJECT_NAME}/${CI_COMMIT_TAG}/${CI_PROJECT_NAME}-${CI_COMMIT_TAG}.jar"'
# - 'curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file build/libs/${CI_PROJECT_NAME}-${CI_COMMIT_TAG}-javadoc.jar
# "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/${CI_PROJECT_NAME}/${CI_COMMIT_TAG}/${CI_PROJECT_NAME}-${CI_COMMIT_TAG}-javadoc.jar"'
# - 'curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file build/libs/${CI_PROJECT_NAME}-${CI_COMMIT_TAG}-sources.jar
# "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/${CI_PROJECT_NAME}/${CI_COMMIT_TAG}/${CI_PROJECT_NAME}-${CI_COMMIT_TAG}-sources.jar"'
# - echo "**** Create asset links ****"
# - 'curl --request POST --header "PRIVATE-TOKEN: ${GITLAB_TOKEN}" --data tag_name="${CI_COMMIT_TAG}"
# --data name="${CI_PROJECT_NAME}-${CI_COMMIT_TAG}.exe" --data url="${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/${CI_PROJECT_NAME}/${CI_COMMIT_TAG}/${CI_PROJECT_NAME}-${CI_COMMIT_TAG}.exe"
# --data link_type="package" "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/releases/${CI_COMMIT_TAG}/assets/links"'
# - 'curl --request POST --header "PRIVATE-TOKEN: ${GITLAB_TOKEN}" --data tag_name="${CI_COMMIT_TAG}"
# --data name="${CI_PROJECT_NAME}-${CI_COMMIT_TAG}.jar" --data url="${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/${CI_PROJECT_NAME}/${CI_COMMIT_TAG}/${CI_PROJECT_NAME}-${CI_COMMIT_TAG}.jar"
# --data link_type="package" "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/releases/${CI_COMMIT_TAG}/assets/links"'
# - 'curl --request POST --header "PRIVATE-TOKEN: ${GITLAB_TOKEN}" --data tag_name="${CI_COMMIT_TAG}"
# --data name="${CI_PROJECT_NAME}-${CI_COMMIT_TAG}-javadoc.jar" --data url="${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/${CI_PROJECT_NAME}/${CI_COMMIT_TAG}/${CI_PROJECT_NAME}-${CI_COMMIT_TAG}-javadoc.jar"
# --data link_type="package" "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/releases/${CI_COMMIT_TAG}/assets/links"'
# - 'curl --request POST --header "PRIVATE-TOKEN: ${GITLAB_TOKEN}" --data tag_name="${CI_COMMIT_TAG}"
# --data name="${CI_PROJECT_NAME}-${CI_COMMIT_TAG}-sources.jar" --data url="${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/${CI_PROJECT_NAME}/${CI_COMMIT_TAG}/${CI_PROJECT_NAME}-${CI_COMMIT_TAG}-sources.jar"
# --data link_type="package" "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/releases/${CI_COMMIT_TAG}/assets/links"'
# rules:
# - if: '$CI_COMMIT_TAG =~ /^\d+\.\d+\.\d+-(alpha|beta)\.\d+$/'
# - if: '$CI_COMMIT_TAG =~ /^\d+\.\d+\.\d+$/'
#Publish Maven Artifacts:
# stage: Build Release
# image: ghcr.io/griefed/baseimage-ubuntu-jdk-8:2.0.3
# before_script:
# - echo "**** Running in $CI_JOB_ID ****"
# - echo "**** Java location ****"
# - which java
# - echo "**** Java version ****"
# - java -version
# - echo "**** Allowing execution of gradlew ****"
# - chmod +x gradlew
# - echo "**** Ensure clean environment ****"
# - "./gradlew clean"
# script:
# - echo "**** Publishing Maven Artifacts ****"
# - "./gradlew publish -Pversion=${CI_COMMIT_TAG} -x test --info --stacktrace"
# rules:
# - if: '$CI_COMMIT_TAG =~ /^\d+\.\d+\.\d+-(alpha|beta)\.\d+$/ && $CI_SERVER_HOST == "git.griefed.de"'
# - if: '$CI_COMMIT_TAG =~ /^\d+\.\d+\.\d+$/ && $CI_SERVER_HOST == "git.griefed.de"'
#Build Docker Release:
# stage: Build Release
# image: ghcr.io/griefed/gitlab-ci-cd:2.0.0
# before_script:
# - docker login -u "$DOCKERHUB_USER" -p "$DOCKERHUB_TOKEN" docker.io
# - docker login -u "$DOCKERHUB_USER" -p "$GITHUB_TOKEN" ghcr.io
# - docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
# - docker buildx create --use --name grfdbuilder
# script:
# - docker buildx build --push --no-cache --platform linux/amd64,linux/arm/v7,linux/arm64
# --tag "ghcr.io/$DOCKERHUB_USER/$DOCKERHUB_REPO:$CI_COMMIT_TAG"
# --tag "ghcr.io/$DOCKERHUB_USER/$DOCKERHUB_REPO:latest"
# --tag "index.docker.io/$DOCKERHUB_USER/$DOCKERHUB_REPO:$CI_COMMIT_TAG"
# --tag "index.docker.io/$DOCKERHUB_USER/$DOCKERHUB_REPO:latest"
# --build-arg BRANCH_OR_TAG=$CI_COMMIT_TAG
# --build-arg HOSTER=$CI_SERVER_HOST
# --build-arg VERSION=$CI_COMMIT_TAG
# --file Dockerfile .
# rules:
# - if: '$CI_COMMIT_TAG =~ /^\d+\.\d+\.\d+$/ && $CI_SERVER_HOST == "git.griefed.de"'
#Build Docker PreRelease:
# stage: Build Release
# image: ghcr.io/griefed/gitlab-ci-cd:2.0.0
# before_script:
# - docker login -u "$DOCKERHUB_USER" -p "$DOCKERHUB_TOKEN" docker.io
# - docker login -u "$DOCKERHUB_USER" -p "$GITHUB_TOKEN" ghcr.io
# - docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
# - docker buildx create --use --name grfdbuilder
# script:
# - docker buildx build --push --no-cache --platform linux/amd64,linux/arm/v7,linux/arm64
# --tag "ghcr.io/$DOCKERHUB_USER/$DOCKERHUB_REPO:$CI_COMMIT_TAG"
# --tag "index.docker.io/$DOCKERHUB_USER/$DOCKERHUB_REPO:$CI_COMMIT_TAG"
# --build-arg BRANCH_OR_TAG=$CI_COMMIT_TAG
# --build-arg HOSTER=$CI_SERVER_HOST
# --build-arg VERSION=$CI_COMMIT_TAG
# --file Dockerfile .
# rules:
# - if: '$CI_COMMIT_TAG =~ /^\d+\.\d+\.\d+-(alpha|beta)\.\d+$/ && $CI_SERVER_HOST == "git.griefed.de"'
#Inform About Release:
# stage: Build Release
# image: ghcr.io/griefed/gitlab-ci-cd:2.0.0
# needs:
# - job: Build Release
# artifacts: false
# - job: Build Docker Release
# artifacts: false
# optional: true
# - job: Build Docker PreRelease
# artifacts: false
# optional: true
# script:
# - /discord.sh
# --webhook-url="$WEBHOOK_URL"
# --username "$CI_PROJECT_TITLE"
# --avatar "https://i.griefed.de/images/2020/11/18/Prosper_Docker_300x300.png"
# --text "There's been a new release for ${CI_PROJECT_TITLE}. The new version is ${CI_COMMIT_TAG} and is available at <${CI_PROJECT_URL}/-/releases/${CI_COMMIT_TAG}>"
# --title "New ${CI_PROJECT_TITLE} Release"
# --description "There's been a new release for ${CI_PROJECT_TITLE}. The new version is ${CI_COMMIT_TAG} and is available at ${CI_PROJECT_URL}/-/releases/${CI_COMMIT_TAG}"
# --color "0xC0FFEE"
# --url "${CI_PROJECT_URL}/-/releases/${CI_COMMIT_TAG}"
# --author "Griefed"
# --author-url "https://${CI_SERVER_HOST}/Griefed"
# --author-icon "https://i.griefed.de/images/2022/01/21/sam_1500x1500.th.jpg"
# --image "https://i.griefed.de/images/2021/05/08/app.png"
# --thumbnail "https://i.griefed.de/images/2020/11/18/Prosper_Docker_300x300.th.png"
# --field "Author;[Griefed](https://${CI_SERVER_HOST}/Griefed)"
# --field "Platform;[${CI_SERVER_HOST}](https://${CI_SERVER_HOST})"
# --footer "Released at $CI_JOB_STARTED_AT"
# --footer-icon "https://i.griefed.de/images/2022/01/21/start_generation.png"
# rules:
# - if: '$CI_COMMIT_TAG =~ /^\d+\.\d+\.\d+-(alpha|beta)\.\d+$/'
# - if: '$CI_COMMIT_TAG =~ /^\d+\.\d+\.\d+$/'
coverage:
stage: Other
image: registry.gitlab.com/haynes/jacoco2cobertura:1.0.8
allow_failure: true
script:
- python /opt/cover2cover.py build/jacoco/test/jacocoTestReport.xml $CI_PROJECT_DIR/backend/main/java/ > build/cobertura.xml || true
- python /opt/source2filename.py build/cobertura.xml || true
artifacts:
reports:
coverage_report:
coverage_format: cobertura
path: build/cobertura.xml
Gradle Dependency-Checks:
image: griefed/baseimage-ubuntu-jdk-8:2.0.11
stage: Other
allow_failure: true
before_script:
- echo "**** Running in $CI_JOB_ID ****"
- echo "**** Java location ****"
- which java
- echo "**** Java version ****"
- java -version
- echo "**** Allowing execution of gradlew ****"
- chmod +x gradlew
- echo "**** Ensure clean environment ****"
- ./gradlew clean
script:
- echo "**** Checking for dependency updates ****"
- ./gradlew dependencyUpdates --info
artifacts:
paths:
- build/dependencyUpdates/report.txt
expire_in: 1 week
#release_job:
# stage: Release
# image: registry.gitlab.com/gitlab-org/release-cli:latest
# rules:
# - if: '$CI_COMMIT_TAG && $CI_SERVER_HOST == "gitlab.com"'
# script:
# - echo "Running the release job to mirror release generation from parent repository."
# release:
# tag_name: $CI_COMMIT_TAG
# name: 'Release $CI_COMMIT_TAG'
# description: './CHANGELOG.md'
#pages:
# # IF JAVA PROJECT
# image: griefed/baseimage-ubuntu-jdk-8:1.0.5
# stage: Documentation
# services:
# - name: griefed/gitlab-ci-cd:1.0.4
# alias: docker
# variables:
# project_name: $CI_PROJECT_NAME
# SEMANTIC_RELEASE_PACKAGE: $CI_PROJECT_NAME
# before_script:
# - which java
# - chmod +x gradlew
# - ./gradlew clean
# script:
# - ./gradlew javaDoc --info -x test
# - cp -Rf build/docs/javadoc public
# - LC_COLLATE=C ls -ahl --group-directories-first --color=auto
# public
# only:
# - master
# - main
# artifacts:
# paths:
# - public
# expire_in: 1 week
#
# # IF QUASAR PROJECT
# image: griefed/gitlab-ci-cd:1.0.4
# stage: build
# cache:
# paths:
# - node_modules/
# before_script:
# - npm install
# - rm -Rf dist
# script:
# - quasar build
# - cp -Rf dist/spa/* public/
# artifacts:
# paths:
# - public
# expire_in: 1 week
# rules:
# - if: "$CI_SERVER_HOST =~ /git.griefed.de/"