feat(Container) use curl instead of wget in maven

This commit is contained in:
Marcel Feix 2021-06-28 13:04:20 +02:00
parent 2162e372de
commit b527942602
No known key found for this signature in database
GPG Key ID: 04D016E104A25F03
2 changed files with 2 additions and 1 deletions

View File

@ -25,7 +25,7 @@
DOCKERFILE_LOCATION: $CI_PROJECT_DIR/Dockerfile DOCKERFILE_LOCATION: $CI_PROJECT_DIR/Dockerfile
CONTEXT_LOCATION: $CI_PROJECT_DIR CONTEXT_LOCATION: $CI_PROJECT_DIR
before_script: before_script:
- wget "https://github.com/aquasecurity/trivy/releases/download/v${TRIVY_VERSION}/trivy_${TRIVY_VERSION}_Linux-64bit.tar.gz" - curl -L "https://github.com/aquasecurity/trivy/releases/download/v${TRIVY_VERSION}/trivy_${TRIVY_VERSION}_Linux-64bit.tar.gz" --output trivy_${TRIVY_VERSION}_Linux-64bit.tar.gz
- tar zxvf trivy_${TRIVY_VERSION}_Linux-64bit.tar.gz - tar zxvf trivy_${TRIVY_VERSION}_Linux-64bit.tar.gz
script: script:
- /kaniko/executor --context $CONTEXT_LOCATION --dockerfile $DOCKERFILE_LOCATION --cache-dir cache/image --tarPath image.tar --no-push --destination image - /kaniko/executor --context $CONTEXT_LOCATION --dockerfile $DOCKERFILE_LOCATION --cache-dir cache/image --tarPath image.tar --no-push --destination image

View File

@ -24,6 +24,7 @@ include:
- 'npm-lint-template.yml' - 'npm-lint-template.yml'
- 'npm-test-template.yml' - 'npm-test-template.yml'
- 'container-publish.yml' - 'container-publish.yml'
- 'container-scan.yml'
- 'set-version-template.yml' - 'set-version-template.yml'
- 'sonar-template.yml' - 'sonar-template.yml'