Update ci.yml

This commit is contained in:
涵曦 2024-10-30 10:39:20 +08:00 committed by GitHub
parent 119283693a
commit 9acd5820ef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -31,15 +31,13 @@ jobs:
- name: Set tags name
id: gen_tag_name
env:
PRETAGNAME: ${{ env.TEST_TAG }}-${{ matrix.platform }}
IMAGE_NAME: ${{ env.TEST_TAG }}
PLATFORM_NAME: ${{ matrix.platform }}
run: |
echo "TAGNAME=${PRETAGNAME/\//-}" >> $GITHUB_OUTPUT
echo ${TAGNAME}
echo "TAGNAME=${IMAGE_NAME}-${PLATFORM_NAME/\///-}" >> >> $GITHUB_ENV
- name: Build Docker image
uses: docker/build-push-action@v6
env:
TAGNAME: ${{ steps.gen_tag_name.outputs.TAGNAME }}
with:
platforms: ${{ matrix.platform }}
context: .