Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Commit

Permalink
Merge pull request #488 from DFE-Digital/ops/github-workflow
Browse files Browse the repository at this point in the history
Adjusted docker image tag to match release tag
  • Loading branch information
DrizzlyOwl authored Jan 12, 2023
2 parents 07e7803 + f95b2ad commit a5adf16
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/build-and-push-image-development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,8 @@ jobs:
run: |
DOCKER_IMAGE=${{ secrets.DEVELOPMENT_AZURE_ACR_URL }}/acatran-app
VERSION=dev-`date +%Y-%m-%d`.${{ github.run_number }}
TAGS="${DOCKER_IMAGE}:${VERSION}"
if [ "${{ github.event_name }}" = "push" ]; then
VERSION=sha-${GITHUB_SHA}
TAGS="$TAGS,${DOCKER_IMAGE}:${VERSION}"
fi
SHA=sha-${GITHUB_SHA}
TAGS="${DOCKER_IMAGE}:${VERSION},${DOCKER_IMAGE}:${SHA}"
echo "tags=${TAGS}" >> $GITHUB_OUTPUT
echo "deploy-version=${VERSION}" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit a5adf16

Please sign in to comment.