Skip to content

Commit 9f0d299

Browse files
committed
Deduplicate data in gitlab CI artifact, use file for signing key password
1 parent d67ad2a commit 9f0d299

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.gitlab-ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,11 @@ node:24:
3737
- npm install-test
3838
- apt-get update && apt-get install -y --no-install-recommends zip
3939
- npm run build-web
40-
- cp web-bundle.zip web/build/static/web-bundle.zip
4140
artifacts:
4241
name: web
4342
expire_in: 20 minutes
4443
paths:
45-
- web/build/static
44+
- web-bundle.zip
4645

4746
pages:
4847
stage: package
@@ -54,9 +53,10 @@ pages:
5453
- node:24
5554
environment: sign # grant access to SIGNING_KEY and SIGNING_KEY_PASS project variables
5655
script:
57-
- apk add --update --no-cache openssl
58-
- openssl dgst -sha256 -sign "$SIGNING_KEY" -passin "pass:$SIGNING_KEY_PASS" -out web/web-bundle.zip.sign web/web-bundle.zip
59-
- mv web public
56+
- apk add --update --no-cache openssl unzip
57+
- mkdir public && mv web-bundle.zip public/
58+
- openssl dgst -sha256 -sign "$SIGNING_KEY" -passin "file:$SIGNING_KEY_PASS" -out public/web-bundle.zip.sign public/web-bundle.zip
59+
- cd public && unzip web-bundle.zip
6060
artifacts:
6161
expire_in: 20 minutes # safe to delete: https://gitlab.com/gitlab-org/gitlab/-/issues/36358#note_2232186823
6262
paths:

0 commit comments

Comments
 (0)