From 6d500e7bbbeb00fbe7990b5f01cec817f37af116 Mon Sep 17 00:00:00 2001 From: Tanishq Rupaal Date: Fri, 17 May 2024 20:34:39 -0500 Subject: [PATCH] push intermediate to hub too --- security_docker_arm/Dockerfile | 2 +- security_docker_arm/local-builder-script.sh | 5 +++-- security_docker_main/Dockerfile | 2 +- security_docker_main/local-builder-script.sh | 3 ++- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/security_docker_arm/Dockerfile b/security_docker_arm/Dockerfile index 8fc9ad0..dc4e6ee 100644 --- a/security_docker_arm/Dockerfile +++ b/security_docker_arm/Dockerfile @@ -1,4 +1,4 @@ -FROM intermediate_builder:latest as intermediate_builder +FROM tanq16/intermediate_builder:arm as intermediate_builder FROM ubuntu:jammy # ============================================================================================================ diff --git a/security_docker_arm/local-builder-script.sh b/security_docker_arm/local-builder-script.sh index be6875f..8a549fe 100644 --- a/security_docker_arm/local-builder-script.sh +++ b/security_docker_arm/local-builder-script.sh @@ -1,4 +1,5 @@ -DOCKER_BUILDKIT=0 docker buildx build --platform=linux/arm64 -f builder.Dockerfile -t intermediate_builder . +DOCKER_BUILDKIT=1 docker buildx build --platform=linux/arm64 -f builder.Dockerfile -t tanq16/intermediate_builder:arm . +docker push tanq16/intermediate_builder:arm docker builder prune -f -DOCKER_BUILDKIT=0 docker buildx build --platform=linux/arm64 -t tanq16/sec_docker:main_apple . +DOCKER_BUILDKIT=1 docker buildx build --platform=linux/arm64 -t tanq16/sec_docker:main_apple . docker push tanq16/sec_docker:main_apple diff --git a/security_docker_main/Dockerfile b/security_docker_main/Dockerfile index 622dbfe..af58cd0 100644 --- a/security_docker_main/Dockerfile +++ b/security_docker_main/Dockerfile @@ -1,4 +1,4 @@ -FROM intermediate_builder as intermediate_builder +FROM tanq16/intermediate_builder:amd as intermediate_builder FROM ubuntu:jammy # ============================================================================================================ diff --git a/security_docker_main/local-builder-script.sh b/security_docker_main/local-builder-script.sh index 00b6557..0076cfe 100644 --- a/security_docker_main/local-builder-script.sh +++ b/security_docker_main/local-builder-script.sh @@ -1,4 +1,5 @@ -DOCKER_BUILDKIT=1 docker build -f builder.Dockerfile -t intermediate_builder . +DOCKER_BUILDKIT=1 docker build -f builder.Dockerfile -t tanq16/intermediate_builder:amd . docker builder prune -f +docker push tanq16/intermediate_builder:amd DOCKER_BUILDKIT=1 docker build -t tanq16/sec_docker:main . docker push tanq16/sec_docker:main