From d5eb27e12625cb3d92c57729898a89db2128e254 Mon Sep 17 00:00:00 2001 From: chuckcharlie Date: Thu, 11 Aug 2022 15:01:43 -0600 Subject: [PATCH] Update buildspec.yml --- buildspec.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/buildspec.yml b/buildspec.yml index aeddece..60fc1d4 100644 --- a/buildspec.yml +++ b/buildspec.yml @@ -5,10 +5,10 @@ env: secrets-manager: DOCKERHUB_PASS: "/dockerhub/credentials:password" DOCKERHUB_USERNAME: "/dockerhub/credentials:username" - variables: - VERSION: $(cat version.txt) - exported-variables: - - VERSION +# variables: +# VERSION: $(cat version.txt) +# exported-variables: +# - VERSION phases: install: commands: @@ -20,7 +20,8 @@ phases: build: commands: - echo Build started on `date` - - echo Building the Docker image... + - echo Building the Docker image... + - VERSION=$(cat version.txt) - docker build -t $DOCKERHUB_USERNAME/$IMAGE_REPO_NAME:$VERSION . - docker tag $DOCKERHUB_USERNAME/$IMAGE_REPO_NAME:$VERSION $DOCKERHUB_USERNAME/$IMAGE_REPO_NAME:$IMAGE_TAG post_build: