Skip to content

Commit

Permalink
Simplify semver parsing.
Browse files Browse the repository at this point in the history
  • Loading branch information
felddy committed Jun 3, 2020
1 parent eaa56e9 commit 6789889
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,16 @@ jobs:
run: ./buildx-dockerfile.sh
- name: Build Docker images, tag, and publish
run: |
IFS='.' read -r -a version_array \
IFS='.' read -r v_major v_minor v_patch \
<<< "${{ steps.get_ver.outputs.version }}"
docker buildx build \
--file Dockerfile-x \
--platform $PLATFORMS \
--output "type=image,push=true" \
--tag "$IMAGE_NAME:latest" \
--tag "${IMAGE_NAME}:${{ steps.get_ver.outputs.version }}" \
--tag "${IMAGE_NAME}:${version_array[0]}.${version_array[1]}" \
--tag "${IMAGE_NAME}:${version_array[0]}" \
--tag "${IMAGE_NAME}:${v_major}.${v_minor}" \
--tag "${IMAGE_NAME}:${v_major}" \
--build-arg GIT_COMMIT=$(git log -1 --format=%H) \
--build-arg GIT_REMOTE=$(git remote get-url origin) \
--build-arg VERSION=${{ steps.get_ver.outputs.version }} \
Expand Down

0 comments on commit 6789889

Please sign in to comment.