Update buildspec.yml

This commit is contained in:
chuckcharlie
2022-08-11 15:01:43 -06:00
committed by GitHub
parent 7baa243153
commit d5eb27e126

View File

@@ -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:
@@ -21,6 +21,7 @@ phases:
commands:
- echo Build started on `date`
- 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: