@@ -29,23 +29,23 @@ jobs:
2929 - name : Checkout Code
3030 uses : actions/checkout@v4
3131
32- - name : Get release tag
33- run : |
34- if [[ "${{ github.event_name }}" == "workflow_dispatch" && -n "${{ github.event.inputs.tag }}" ]]; then
35- TAG="${{ github.event.inputs.tag }}"
36- # use the latest tag if not specified
37- elif [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
38- TAG=$(git ls-remote --tags https://github.com/AutoMQ/automq.git | grep -v '\^{}' | tail -1 | sed 's/.*refs\/tags\///')
39- else
40- TAG="${{ github.event.workflow_run.head_branch }}"
41- fi
32+ - name : Get release tag
33+ run : |
34+ if [[ "${{ github.event_name }}" == "workflow_dispatch" && -n "${{ github.event.inputs.tag }}" ]]; then
35+ TAG="${{ github.event.inputs.tag }}"
36+ # use the latest tag if not specified
37+ elif [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
38+ TAG=$(git ls-remote --tags https://github.com/AutoMQ/automq.git | grep -v '\^{}' | tail -1 | sed 's/.*refs\/tags\///')
39+ else
40+ TAG="${{ github.event.workflow_run.head_branch }}"
41+ fi
4242
43- AUTOMQ_URL="https://github.com/AutoMQ/automq/releases/download/${TAG}/automq-${TAG}_kafka-${KAFKA_VERSION}.tgz"
43+ AUTOMQ_URL="https://github.com/AutoMQ/automq/releases/download/${TAG}/automq-${TAG}_kafka-${KAFKA_VERSION}.tgz"
4444
45- {
46- echo "AUTOMQ_VERSION=${TAG}-kafka"
47- echo "AUTOMQ_URL=${AUTOMQ_URL}"
48- } >> $GITHUB_ENV
45+ {
46+ echo "AUTOMQ_VERSION=${TAG}-kafka"
47+ echo "AUTOMQ_URL=${AUTOMQ_URL}"
48+ } >> $GITHUB_ENV
4949
5050 - name : Set up Python 3.10
5151 uses : actions/setup-python@v5
6666
6767 cd docker
6868 python3 docker_release.py \
69- ${{ secrets.DOCKERHUB_USERNAME }}:${AUTOMQ_VERSION} \
69+ ${{ secrets.DOCKERHUB_USERNAME }}/automq :${AUTOMQ_VERSION} \
7070 --kafka-url ${AUTOMQ_URL}
0 commit comments