From 091a8ddbc8feeedf842e33d7a1679bc79aa47150 Mon Sep 17 00:00:00 2001 From: Andrew Dryga Date: Thu, 16 Nov 2023 21:17:34 -0600 Subject: [PATCH] Copy major and major-minor containers to prod --- .github/workflows/publish.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 0541138cd..7fa8b3bcf 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -57,6 +57,8 @@ jobs: run: | set -xe IMAGES=(relay api gateway web) + MAJOR_VERSION="${VERSION%%.*}" + MAJOR_MINOR_VERSION="${VERSION%.*}" for image in "${IMAGES[@]}"; do SOURCE_TAG=${{ steps.login-staging.outputs.registry }}/firezone/${image}:${{ inputs.tag || github.sha }} @@ -66,6 +68,8 @@ jobs: docker tag ${SOURCE_TAG} ${{ steps.login-production.outputs.registry }}/firezone/${image}:${{ inputs.tag || github.sha }} docker tag ${SOURCE_TAG} ${{ steps.login-production.outputs.registry }}/firezone/${image}:${{ env.VERSION }} + docker tag ${SOURCE_TAG} ${{ steps.login-production.outputs.registry }}/firezone/${image}:${{ env.MAJOR_VERSION }} + docker tag ${SOURCE_TAG} ${{ steps.login-production.outputs.registry }}/firezone/${image}:${{ env.MAJOR_MINOR_VERSION }} docker tag ${SOURCE_TAG} ${{ steps.login-production.outputs.registry }}/firezone/${image}:${{ env.VERSION }}-${{ inputs.tag || github.sha }} docker push --all-tags ${{ steps.login-production.outputs.registry }}/firezone/${image}