From da08f1902249d6305b28617b0d41f2600a2638c0 Mon Sep 17 00:00:00 2001 From: Suvarna Rokade Date: Tue, 31 Oct 2023 11:31:02 +0530 Subject: [PATCH] changes to make docker push internal --- .github/workflows/gobuild.yml | 2 +- .github/workflows/release.yml | 23 ++++++++++++++-------- scripts/atlantis/docker-build.sh | 2 +- scripts/atlantis/docker-push-latest-tag.sh | 2 +- scripts/atlantis/docker-push-latest.sh | 2 +- 5 files changed, 19 insertions(+), 12 deletions(-) diff --git a/.github/workflows/gobuild.yml b/.github/workflows/gobuild.yml index bdb8f832a..cf6f773e5 100644 --- a/.github/workflows/gobuild.yml +++ b/.github/workflows/gobuild.yml @@ -82,4 +82,4 @@ jobs: - name: Run scan run: | image_tag=$(/dev/null) -DOCKER_REPO="tenable/terrascan_atlantis" +DOCKER_REPO="docker-terrascan-local.artifactory.eng.tenable.com/terrascan_atlantis" DIR="./integrations/atlantis" docker build -t ${DOCKER_REPO}:${GIT_COMMIT} ${DIR} diff --git a/scripts/atlantis/docker-push-latest-tag.sh b/scripts/atlantis/docker-push-latest-tag.sh index 2fce8b397..f6d57ec74 100755 --- a/scripts/atlantis/docker-push-latest-tag.sh +++ b/scripts/atlantis/docker-push-latest-tag.sh @@ -5,7 +5,7 @@ set -o nounset set -o pipefail GIT_COMMIT=$(git rev-parse --short HEAD 2>/dev/null) -DOCKER_REPO="tenable/terrascan_atlantis" +DOCKER_REPO="docker-terrascan-local.artifactory.eng.tenable.com/terrascan_atlantis" LATEST_TAG=$(git describe --abbrev=0 --tags) LATEST_TAG_SHORT=$(echo "${LATEST_TAG//v}") diff --git a/scripts/atlantis/docker-push-latest.sh b/scripts/atlantis/docker-push-latest.sh index b2b80d544..56b3444a1 100755 --- a/scripts/atlantis/docker-push-latest.sh +++ b/scripts/atlantis/docker-push-latest.sh @@ -5,7 +5,7 @@ set -o nounset set -o pipefail GIT_COMMIT=$(git rev-parse --short HEAD 2>/dev/null) -DOCKER_REPO="tenable/terrascan_atlantis" +DOCKER_REPO="docker-terrascan-local.artifactory.eng.tenable.com/terrascan_atlantis" LATEST_TAG="latest" # PS: It is a prerequisite to execute 'docker login' before running this script