diff --git a/.github/workflows/upload-to-release.yml b/.github/workflows/upload-to-release.yml index c713e64..754fbb7 100644 --- a/.github/workflows/upload-to-release.yml +++ b/.github/workflows/upload-to-release.yml @@ -52,15 +52,12 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_PASSWORD }} - - name: Get tag - run: | - export DOCKER_TAG=$(echo ${{ github.ref }} | awk -F'release-v' '{ print $2 }') - - name: Publish Docker - uses: elgohr/Publish-Docker-Github-Action@2.7 + uses: LucienShui/Publish-Docker-Github-Action@2.7.1 with: - name: registry.cn-hangzhou.aliyuncs.com/pasteus/hello-ci:${DOCKER_TAG} + name: registry.cn-hangzhou.aliyuncs.com/pasteus/hello-ci username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} registry: registry.cn-hangzhou.aliyuncs.com - dockerfile: Dockerfile \ No newline at end of file + dockerfile: Dockerfile + tag_names: true \ No newline at end of file