Skip to content

Commit

Permalink
Fixed build order
Browse files Browse the repository at this point in the history
  • Loading branch information
jaydrogers committed Nov 13, 2024
1 parent 596f106 commit 0ff8b41
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/service_docker-build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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:
Expand Down

0 comments on commit 0ff8b41

Please sign in to comment.