From 0ff8b41403e6c92eec00be2d2abff47906688a08 Mon Sep 17 00:00:00 2001 From: Jay Rogers Date: Wed, 13 Nov 2024 14:22:23 -0600 Subject: [PATCH] Fixed build order --- .../service_docker-build-and-publish.yml | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/.github/workflows/service_docker-build-and-publish.yml b/.github/workflows/service_docker-build-and-publish.yml index f9883c9..d42acef 100644 --- a/.github/workflows/service_docker-build-and-publish.yml +++ b/.github/workflows/service_docker-build-and-publish.yml @@ -36,12 +36,6 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - - name: "📦 Assemble the Docker Tags" - run: | - bash build.sh \ - --release-type ${{ inputs.release_type }} \ - --print-tags-only - - name: Set REPOSITORY_BUILD_VERSION id: set_version run: | @@ -54,6 +48,19 @@ jobs: echo "REPOSITORY_BUILD_VERSION=git-${SHORT_SHA}-${{ github.run_id }}" >> $GITHUB_ENV fi + - name: "📦 Assemble the Docker Tags" + run: | + if [ "${{ github.ref_type }}" == "tag" ]; then + bash build.sh \ + --release-type ${{ inputs.release_type }} \ + --version ${{ github.ref_name }} \ + --print-tags-only + else + bash build.sh \ + --release-type ${{ inputs.release_type }} \ + --print-tags-only + fi + - name: Build and push uses: docker/build-push-action@v6 with: