From 0c5bfbffc7dc0e879079c919924c837051a78b6f Mon Sep 17 00:00:00 2001 From: xpnas Date: Fri, 26 Mar 2021 23:32:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9Docker?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/docker.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index f0f035c..d8b8e70 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -16,6 +16,10 @@ jobs: name: Check out the repo uses: actions/checkout@v2 + - name: Get version + id: get_version + run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} + - name: Set up QEMU uses: docker/setup-qemu-action@v1 @@ -59,7 +63,7 @@ jobs: file: ./Inotify/Dockerfile platforms: linux/amd64 push: true - tags: ${{ secrets.DOCKERHUB_TAG }}:${{ github.ref }} + tags: ${{ secrets.DOCKERHUB_TAG }}:${{ steps.get_version.outputs.VERSION }} - name: 'Report Suecss' run: curl ${{ secrets.INOTIFY }}/Inotify/dockerBuildComplated!