-
Notifications
You must be signed in to change notification settings - Fork 494
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add terrascan_atlantis container build and push in release workflow
- Loading branch information
1 parent
73c0b3e
commit 3a654af
Showing
6 changed files
with
75 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,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} |