From 643267caba4f899313f1dba9cba59848ee16912e Mon Sep 17 00:00:00 2001 From: James Wells Date: Thu, 9 Sep 2021 13:38:51 -0700 Subject: [PATCH] fix: forgot to uncomment build commands. --- .drone.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index 922d089..b10148b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -53,13 +53,13 @@ steps: - trivy fs --skip-update --exit-code 1 --severity CRITICAL,HIGH . # Build new container image. - # - docker buildx build --push --platform linux/amd64 --progress plain --build-arg SEMVER="${DRONE_SEMVER##v:0.0.0}" -t ${DRONE_REPO}:${DRONE_SEMVER##v} -f docker/Dockerfile . + - docker buildx build --push --platform linux/amd64 --progress plain --build-arg SEMVER="${DRONE_SEMVER}" -t ${DRONE_REPO}:latest -t ${DRONE_REPO}:${DRONE_SEMVER} -f docker/Dockerfile . # Perform image security check of lower level vulnerabilities. This will not break the build, we just want this information, just in case. - # - trivy image --skip-update --exit-code 0 --severity UNKNOWN,LOW,MEDIUM,HIGH ${DRONE_REPO}:${DRONE_SEMVER##v} + - trivy image --skip-update --exit-code 0 --severity UNKNOWN,LOW,MEDIUM,HIGH ${DRONE_REPO}:${DRONE_SEMVER} # Perform image security check of higher level vulnerabilities. This can break the build. - # - trivy image --skip-update --exit-code 1 --severity CRITICAL ${DRONE_REPO}:${DRONE_SEMVER##v} + - trivy image --skip-update --exit-code 1 --severity CRITICAL ${DRONE_REPO}:${DRONE_SEMVER} # name: Create Test Environment # image: dragonheim/terraform:latest