Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Amanda Cornwell authored and Amanda Cornwell committed Oct 23, 2023
1 parent 3bd82eb commit cfcb4b4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/gobuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,14 @@ jobs:

- uses: docker/setup-qemu-action@v2

- name: Login to Artifactory
run: docker login --username svc_terrascan --password ${{ secrets.ARTIFACTORY_API_TOKEN }} https://docker-terrascan-local.artifactory.eng.tenable.com

- name: Build latest docker image
run: make docker-build-push-latest
env:
MULTIPLATFORM: true

- name: Login to Artifactory
run: docker login --username svc_terrascan --password ${{ secrets.ARTIFACTORY_API_TOKEN }} https://docker-terrascan-local.artifactory.eng.tenable.com

- name: Pull Image
run: docker pull docker-terrascan-local.artifactory.eng.tenable.com/tenb-cb:1.0.10.DEV231011191849-J-EPRT-TENB-CB-TENB-CB-CICD-5797-10

Expand Down
3 changes: 3 additions & 0 deletions scripts/docker-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ fi

declare -a PLATFORM
if [ "${MULTIPLATFORM-false}" = "true" ]; then
OUTPUT_TYPE="--push"
PLATFORM=("--platform" "linux/amd64,linux/arm64")
else
OUTPUT_TYPE="--load"
fi

docker buildx create "${PLATFORM[@]}" --name terrascan-builder --use
Expand Down

0 comments on commit cfcb4b4

Please sign in to comment.