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