From 73a61702b1b3f5c3381d7ee95feb6194e43c2b9d Mon Sep 17 00:00:00 2001 From: videogaber <6244640+videogaber@users.noreply.github.com> Date: Mon, 31 Jul 2023 13:02:33 -0500 Subject: [PATCH] [CIVIS-6103] fix missing public keys (#91) * add public keys * add temporary push file * break up RUN command for debugging * seperate keys * remmove apt-key commands * curl * try again * update build spec command * add a space * stop push for now * copy pasta * collapse run commands * collapse commands * fix tag * cleanup * Update buildspec/release.yaml use --all-tags Co-authored-by: Michael Peterson --------- Co-authored-by: Michael Peterson --- buildspec/release.yaml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/buildspec/release.yaml b/buildspec/release.yaml index a1fcc27..d31ecd2 100644 --- a/buildspec/release.yaml +++ b/buildspec/release.yaml @@ -1,18 +1,16 @@ version: 0.2 phases: - pre_build: - commands: - - echo Logging in to Amazon ECR... - - $(aws ecr get-login --no-include-email --region $AWS_DEFAULT_REGION) build: commands: + - echo Logging in to Amazon ECR... + - aws ecr get-login-password --region ${AWS_DEFAULT_REGION} | docker login --username AWS --password-stdin ${REPOSITORY_URI} - echo Building the Docker image... - PATCH_TAG=${TAG_NAME#"v"} # major.minor.patch - MINOR_TAG=${PATCH_TAG%.*} # major.minor - MAJOR_TAG=${MINOR_TAG%.*} # major - docker build -t ${REPOSITORY_URI}:${PATCH_TAG} -t ${REPOSITORY_URI}:${MINOR_TAG} -t ${REPOSITORY_URI}:${MAJOR_TAG} . - - docker push ${REPOSITORY_URI} + - docker image push --all-tags ${REPOSITORY_URI} post_build: commands: - echo Build completed!