Skip to content

Commit

Permalink
chore: remove Docker image tag determination
Browse files Browse the repository at this point in the history
  • Loading branch information
Gezi-lzq committed May 7, 2024
1 parent 49a611b commit 4232f2b
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions .github/workflows/docker-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,6 @@ jobs:
- name: Cp TarGz to Docker Path
run: |
cp ./core/build/distributions/automq-${{ github.ref_name }}_kafka-${{ steps.get_project_version.outputs.PROJECT_VERSION }}.tgz ./docker/
- name: Determine Image Tags
id: image_tags
run: |
LATEST_TAG=$(git fetch --tags && git tag --sort=-v:refname | grep -E '^[0-9]+\.[0-9]+\.[0-9]+$' | head -n 1)
echo "LATEST_TAG=${LATEST_TAG}"
if [ "$LATEST_TAG" == "${{ github.ref_name }}" ]; then
echo "tags=${{ secrets.DOCKERHUB_USERNAME }}/automq:${{ github.ref_name }}, ${{ secrets.DOCKERHUB_USERNAME }}/automq:latest" >> $GITHUB_OUTPUT
else
echo "tags=${{ secrets.DOCKERHUB_USERNAME }}/automq:${{ github.ref_name }}" >> $GITHUB_OUTPUT
fi
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
Expand All @@ -70,5 +60,5 @@ jobs:
with:
context: ./docker
push: true
tags: ${{ steps.image_tags.outputs.tags }}
tags: ${{ secrets.DOCKERHUB_USERNAME }}/automq:${{ github.ref_name }}
platforms: linux/amd64,linux/arm64

0 comments on commit 4232f2b

Please sign in to comment.