Skip to content

Commit 05ea5d3

Browse files
committed
chore: updated tags after java bugfix
1 parent cc1f80d commit 05ea5d3

File tree

3 files changed

+17
-8
lines changed

3 files changed

+17
-8
lines changed

.circleci/config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,31 +50,31 @@ executors:
5050
resource_class: small
5151
docker-amd64:
5252
docker:
53-
- image: snyklabs/cli-build-private:20250909-140502
53+
- image: snyklabs/cli-build-private:20250910-083449
5454
auth:
5555
username: $DOCKER_CLI_BUILD_USERNAME
5656
password: $DOCKER_CLI_BUILD_PASSWORD
5757
working_directory: /mnt/ramdisk/snyk
5858
resource_class: large
5959
docker-amd64-xl:
6060
docker:
61-
- image: snyklabs/cli-build-private:20250909-140502
61+
- image: snyklabs/cli-build-private:20250910-083449
6262
auth:
6363
username: $DOCKER_CLI_BUILD_USERNAME
6464
password: $DOCKER_CLI_BUILD_PASSWORD
6565
working_directory: /mnt/ramdisk/snyk
6666
resource_class: xlarge
6767
docker-arm64:
6868
docker:
69-
- image: snyklabs/cli-build-private-arm64:20250909-140502
69+
- image: snyklabs/cli-build-private-arm64:20250910-083449
7070
auth:
7171
username: $DOCKER_CLI_BUILD_USERNAME
7272
password: $DOCKER_CLI_BUILD_PASSWORD
7373
working_directory: /mnt/ramdisk/snyk
7474
resource_class: arm.large
7575
docker-arm64-xl:
7676
docker:
77-
- image: snyklabs/cli-build-private-arm64:20250909-140502
77+
- image: snyklabs/cli-build-private-arm64:20250910-083449
7878
auth:
7979
username: $DOCKER_CLI_BUILD_USERNAME
8080
password: $DOCKER_CLI_BUILD_PASSWORD

.github/workflows/create-build-image.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ jobs:
3030
steps:
3131
- uses: actions/checkout@v5
3232
- uses: docker/setup-buildx-action@v3
33+
- uses: docker/login-action@v3
34+
with:
35+
username: ${{ secrets.DOCKER_CLI_BUILD_USERNAME }}
36+
password: ${{ secrets.DOCKER_CLI_BUILD_PASSWORD }}
3337
- name: Build Docker image (${{ matrix.arch }})
3438
env:
3539
DOCKER_REPO: snyklabs

scripts/create-build-image.sh

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,14 @@ if [[ -n "${CI:-}" ]]; then
66
else
77
# Local development: echo all commands for debugging
88
set -exuo pipefail
9+
# Set up cleanup for local development
10+
trap 'docker logout' EXIT
911
fi
1012

11-
trap 'docker logout' EXIT
1213

1314
# This script is used for building Docker images which in turn build the CLI.
14-
# It sets up the environment, logs into Docker, and builds images for different architectures.
15+
# It sets up the environment and builds images for different architectures.
16+
# Docker login should be handled by the CI/CD system (e.g., GitHub Actions).
1517

1618
# Before running the script, ensure DOCKER_REPO, DOCKER_USERNAME and DOCKER_PASSWORD environment variables are set.
1719
# Example usage:
@@ -42,8 +44,11 @@ pushd "$SCRIPT_DIR/.."
4244
echo "Building Docker image for $TARGET_ARCH with Node version: $NODEVERSION"
4345
echo "Timestamp: $TAG"
4446

45-
echo "Logging into Docker"
46-
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
47+
# For local development, login to Docker
48+
if [[ -z "${CI:-}" ]]; then
49+
echo "Logging into Docker"
50+
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
51+
fi
4752

4853
echo "Building $TARGET_ARCH image..."
4954

0 commit comments

Comments
 (0)