From 9a8457d526714f96d383a8920f903c2fd26de798 Mon Sep 17 00:00:00 2001 From: Mmx233 Date: Fri, 7 Apr 2023 10:45:59 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E6=B7=BB=E5=8A=A0=20docker=20image=20url?= =?UTF-8?q?=20=E8=AE=A1=E7=AE=97=20step?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 5145ab9..7699c0b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -12,6 +12,14 @@ jobs: steps: - uses: actions/checkout@v3 + - name: Get Docker Image Url + id: image + env: + URL: mmx233/bitsrunlogin-go + run: | + echo LATEST=${URL}:latest >> $GITHUB_OUTPUT + echo VERSION=${URL}:${GITHUB_REF/refs\/tags\//} >> $GITHUB_OUTPUT + - name: Setup QEMU Emulator uses: docker/setup-qemu-action@master with: @@ -36,4 +44,4 @@ jobs: context: . file: ./Dockerfile platforms: linux/amd64,linux/386,linux/arm64,linux/arm/v7 - tags: mmx233/bitsrunlogin-go:latest,mmx233/bitsrunlogin-go:${{GITHUB_REF/refs\/tags\//}} \ No newline at end of file + tags: ${{ steps.image.outputs.VERSION }},${{ steps.image.outputs.LATEST }} \ No newline at end of file