Skip to content

Commit

Permalink
chore: publish build image to snyklabs (#5122)
Browse files Browse the repository at this point in the history
CLI-166
  • Loading branch information
cmars committed Mar 20, 2024
1 parent cd8eb6c commit 74c864e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ executors:
resource_class: medium+
docker-amd64:
docker:
- image: bastiandoetsch209/cli-build:20240214-145818
- image: snyklabs/cli-build:20240319-123447
working_directory: /mnt/ramdisk/snyk
resource_class: large
docker-arm64:
docker:
- image: bastiandoetsch209/cli-build-arm64:20240214-145818
- image: snyklabs/cli-build-arm64:20240319-123447
working_directory: /mnt/ramdisk/snyk
resource_class: arm.large
linux-ubuntu-mantic-amd64:
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/create-build-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ jobs:
- uses: docker/setup-buildx-action@v2
- name: Build Docker image
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
DOCKER_USERNAME: ${{ secrets.DOCKER_CLI_BUILD_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_CLI_BUILD_PASSWORD }}
DOCKER_REPO: snyklabs
DOCKER_BUILDKIT: 1
run: scripts/create-build-image.sh
4 changes: 2 additions & 2 deletions scripts/create-build-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ pushd "$SCRIPT_DIR/.."

docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD"

BASE_IMG_NAME=$DOCKER_USERNAME/cli-build
BASE_IMG_NAME=${DOCKER_REPO:-${DOCKER_USERNAME}}/cli-build
docker buildx build \
--build-arg NODEVERSION="$NODEVERSION" \
--build-arg ARCH="x86_64" \
Expand All @@ -31,7 +31,7 @@ pushd "$SCRIPT_DIR/.."
--push \
--file .circleci/Dockerfile .

BASE_IMG_NAME=$DOCKER_USERNAME/cli-build-arm64
BASE_IMG_NAME=${DOCKER_REPO:-${DOCKER_USERNAME}}/cli-build-arm64
docker buildx build \
--build-arg NODEVERSION="$NODEVERSION" \
--build-arg ARCH="aarch64" \
Expand Down

0 comments on commit 74c864e

Please sign in to comment.