From dc9eb96a27fb7a4e5e4345e69e878c44733e0c48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B6=B5=E6=9B=A6?= Date: Wed, 30 Oct 2024 10:23:26 +0800 Subject: [PATCH] Update ci.yml --- .github/workflows/ci.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fb320d1..5a0edc4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,12 +29,16 @@ jobs: password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Set tags name + id: gen_tag_name env: PRETAGNAME: ${{ env.TEST_TAG }}-${{ matrix.platform }} - run: echo "TAGNAME=${PRETAGNAME/\//-}" >> $GITHUB_ENV + run: | + echo "TAGNAME=${PRETAGNAME/\//-}" >> $GITHUB_OUTPUT - name: Build Docker image uses: docker/build-push-action@v6 + env: + TAGNAME: ${{ steps.gen_tag_name.outputs.TAGNAME }} with: platforms: ${{ matrix.platform }} context: .