Other: Introduce gobinsec cache.

This commit is contained in:
Jakub
2022-07-25 13:47:42 +02:00
parent ea39e2d842
commit 2a7aefac45
2 changed files with 25 additions and 3 deletions

View File

@ -38,6 +38,7 @@ stages:
- cache
- test
- build
- check
- mirror
# Stage: CACHE
@ -138,9 +139,6 @@ build-qml:
script:
- make build
- git diff && git diff-index --quiet HEAD
- curl -L https://services.nvd.nist.gov/rest/json/cves/1.0/
- gobinsec -verbose -wait -config utils/gobinsec_conf.yml
cmd/Desktop-Bridge/deploy/linux/proton-bridge
artifacts:
# Note: The latest artifacts for refs are locked against deletion, and kept
# regardless of the expiry time. Introduced in GitLab 13.0 behind a
@ -235,6 +233,26 @@ build-windows-qa:
artifacts:
name: "bridge-windows-qa-$CI_COMMIT_SHORT_SHA"
# Stage: CHECK
check-gobinsec:
stage: check
only:
- branches
cache:
key: gobinsec-cache
paths:
- gobinsec-cache.yml
policy: pull-push
before_script:
- mkdir build
- tar -xzf bridge_linux_*.tgz -C build
script:
- "[ ! -f ./gobinsec-cache.yml ] && wget bridgeteam.protontech.ch/bridgeteam/gobinsec-cache.yml"
- cat ./gobinsec-cache.yml
- gobinsec -cache -config utils/gobinsec_conf.yml build/proton-bridge
# Stage: MIRROR
mirror-repo: