Skip to content

Commit

Permalink
LASB-2748: Updated the docker tag to use the commit hash rather than …
Browse files Browse the repository at this point in the history
…reading from a file.
  • Loading branch information
mtac50 committed Dec 7, 2023
1 parent 0892516 commit 2ca6284
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/cp-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ jobs:
REPOSITORY: ${{ vars.ECR_REPOSITORY }}
id: get-docker-tag
run: |
DOCKER_TAG="$( cat BUILD_TAG.txt )"
echo "Using docker tag '${DOCKER_TAG}' from BUILD_TAG.txt ..."
DOCKER_TAG=$GITHUB_SHA
echo "Using docker tag '${DOCKER_TAG}'"
if docker pull "$REGISTRY/$REPOSITORY:${DOCKER_TAG}"; then
echo "Docker tag '${DOCKER_TAG}' already exists in the ECR - Not rebuilding Docker container"
Expand All @@ -42,7 +42,7 @@ jobs:
echo "DOCKER_TAG=${DOCKER_TAG}" >> "$GITHUB_ENV"
echo "DOCKER_TAG=$DOCKER_TAG" >> "$GITHUB_OUTPUT"
- name: Building the MLRA image
- name: Building the NOLASA image
run: |
if docker pull "$REGISTRY/$REPOSITORY:$DOCKER_TAG"; then
echo "Docker image '$DOCKER_TAG' is up to date - not rebuilding"
Expand Down

0 comments on commit 2ca6284

Please sign in to comment.