From e36763750d8bce8a3830c190cc8d8c7fc1209657 Mon Sep 17 00:00:00 2001 From: Ash Davies <3853061+DrizzlyOwl@users.noreply.github.com> Date: Thu, 8 Aug 2024 11:56:55 +0100 Subject: [PATCH] add tag prefix to docker build stage (#553) * prefix tags when built on GHCR so that persons api is distinct from academies api --- .github/workflows/build-and-push-image.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/build-and-push-image.yml b/.github/workflows/build-and-push-image.yml index 8191630f9..ce95f1f6e 100644 --- a/.github/workflows/build-and-push-image.yml +++ b/.github/workflows/build-and-push-image.yml @@ -58,13 +58,16 @@ jobs: include: - image: "Dockerfile" aca_name_secret: "AZURE_ACA_NAME" + prefix: "" name: "tramsapi-app" - image: "Dockerfile.PersonsApi" aca_name_secret: "AZURE_PERSONS_API_ACA_NAME" + prefix: "persons-api-" name: "personsapi-app" with: docker-image-name: '${{ matrix.name }}' docker-build-file-name: './${{ matrix.image }}' + docker-tag-prefix: ${{ matrix.prefix }} environment: ${{ needs.set-env.outputs.environment }} # Only annotate the release once, because both apps are deployed at the same time annotate-release: ${{ matrix.name == 'tramsapi-app' }}