forked from tenable/terrascan
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Gh action terrscan_atlantis release (tenable#733)
* Add terrascan_atlantis container build and push in release workflow * add a sample config.toml in atlantis/
- Loading branch information
Devang Gaur
authored
May 5, 2021
1 parent
881417a
commit d242c2e
Showing
7 changed files
with
77 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[severity] | ||
level = "high" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
set -o errexit | ||
set -o nounset | ||
set -o pipefail | ||
|
||
GIT_COMMIT=$(git rev-parse --short HEAD 2>/dev/null) | ||
DOCKER_REPO="accurics/terrascan_atlantis" | ||
DIR="./atlantis" | ||
|
||
docker build -t ${DOCKER_REPO}:${GIT_COMMIT} ${DIR} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
|
||
set -o errexit | ||
set -o nounset | ||
set -o pipefail | ||
|
||
GIT_COMMIT=$(git rev-parse --short HEAD 2>/dev/null) | ||
DOCKER_REPO="accurics/terrascan_atlantis" | ||
LATEST_TAG=$(git describe --abbrev=0 --tags) | ||
LATEST_TAG_SHORT=$(echo "${LATEST_TAG//v}") | ||
|
||
# PS: It is a prerequisite to execute 'docker login' before running this script | ||
docker tag ${DOCKER_REPO}:${GIT_COMMIT} ${DOCKER_REPO}:${LATEST_TAG_SHORT} | ||
docker push ${DOCKER_REPO}:${LATEST_TAG_SHORT} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
|
||
set -o errexit | ||
set -o nounset | ||
set -o pipefail | ||
|
||
GIT_COMMIT=$(git rev-parse --short HEAD 2>/dev/null) | ||
DOCKER_REPO="accurics/terrascan_atlantis" | ||
LATEST_TAG="latest" | ||
|
||
# PS: It is a prerequisite to execute 'docker login' before running this script | ||
docker tag ${DOCKER_REPO}:${GIT_COMMIT} ${DOCKER_REPO}:${LATEST_TAG} | ||
docker push ${DOCKER_REPO}:${LATEST_TAG} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
set -o errexit | ||
set -o nounset | ||
set -o pipefail | ||
|
||
GIT_COMMIT=$(git rev-parse --short HEAD 2>/dev/null) | ||
DOCKER_REPO="accurics/terrascan_atlantis" | ||
|
||
# PS: It is a prerequisite to execute 'docker login' before running this script | ||
docker push ${DOCKER_REPO}:${GIT_COMMIT} |