Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add checksum signing #1003

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 17 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,33 @@ include:
- project: 'ci-cd/templates'
ref: master
file: '/prodsec/.oss-scan.yml'
- project: 'core-ee/signing/api-integration'
ref: develop
file: '/templates/.sign-client.yml'

stages:
- scan
- prepare
- checksums-sign
- release

.prepare_dist: &prepare_dist
- npm install
- npm run prepare-release-artifact
- shasum -a 256 dist/* > dist/checksums.txt

prepare:
stage: prepare
script:
- *prepare_dist

checksums-sign:
stage: checksums-sign
extends: .submit-signing-request
variables:
ARTIFACT: dist/checksums.txt
SIGN_TYPE: GPG

oss-scan:
stage: scan
extends: .oss-scan
Expand All @@ -27,7 +44,6 @@ release:
rules:
- if: $CI_COMMIT_TAG =~ /^v[0-9]+\.[0-9]+\.[0-9]+.*/
script:
- *prepare_dist
- npm run release:github
- echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc
- npm publish ./dist/splunk-otel-${CI_COMMIT_REF_NAME:1}.tgz
Expand All @@ -42,7 +58,6 @@ prerelease:
rules:
- if: $CI_COMMIT_TAG =~ /^prerelease-v[0-9]+\.[0-9]+\.[0-9]+(?:-.+)?$/
script:
- *prepare_dist
- echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc
- npm publish --tag prerelease ./dist/splunk-otel-${CI_COMMIT_REF_NAME:12}.tgz
- rm -f ~/.npmrc
Expand Down
Loading