From 3af53aee131ea1fd8f6e7b04565c61d9edb3b1c8 Mon Sep 17 00:00:00 2001 From: chuckcharlie Date: Wed, 27 Jul 2022 16:31:13 -0600 Subject: [PATCH] Update buildspec-manifest.yml --- buildspec-manifest.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/buildspec-manifest.yml b/buildspec-manifest.yml index 25e956d..bdab1d1 100644 --- a/buildspec-manifest.yml +++ b/buildspec-manifest.yml @@ -19,13 +19,13 @@ phases: - echo Build started on `date` - echo Building the Docker manifest... - export DOCKER_CLI_EXPERIMENTAL=enabled - - docker manifest create chuckcharlie/$IMAGE_REPO_NAME chuckcharlie/$IMAGE_REPO_NAME:latest-arm64 chuckcharlie/$IMAGE_REPO_NAME:latest-amd64 - - docker manifest annotate --arch arm64 chuckcharlie/$IMAGE_REPO_NAME chuckcharlie/$IMAGE_REPO_NAME:latest-arm64 - - docker manifest annotate --arch amd64 chuckcharlie/$IMAGE_REPO_NAME chuckcharlie/$IMAGE_REPO_NAME:latest-amd64 + - docker manifest create $DOCKERHUB_USERNAME/$IMAGE_REPO_NAME $DOCKERHUB_USERNAME/$IMAGE_REPO_NAME:latest-arm64 $DOCKERHUB_USERNAME/$IMAGE_REPO_NAME:latest-amd64 + - docker manifest annotate --arch arm64 $DOCKERHUB_USERNAME/$IMAGE_REPO_NAME $DOCKERHUB_USERNAME/$IMAGE_REPO_NAME:latest-arm64 + - docker manifest annotate --arch amd64 $DOCKERHUB_USERNAME/$IMAGE_REPO_NAME $DOCKERHUB_USERNAME/$IMAGE_REPO_NAME:latest-amd64 post_build: commands: - echo Build completed on `date` - echo Pushing the Docker image... - - docker manifest push chuckcharlie/$IMAGE_REPO_NAME - - docker manifest inspect chuckcharlie/$IMAGE_REPO_NAME + - docker manifest push $DOCKERHUB_USERNAME/$IMAGE_REPO_NAME + - docker manifest inspect $DOCKERHUB_USERNAME/$IMAGE_REPO_NAME