浏览代码

Update build.yml

0xJacky 2 年之前
父节点
当前提交
3348177470
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      .github/workflows/build.yml

+ 5 - 0
.github/workflows/build.yml

@@ -106,6 +106,10 @@ jobs:
             -   name: Checkout
             -   name: Checkout
                 uses: actions/checkout@v2
                 uses: actions/checkout@v2
 
 
+            -   name: Get the version
+                id: get_version
+                run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
+
             -   name: Set up Go
             -   name: Set up Go
                 uses: actions/setup-go@v2
                 uses: actions/setup-go@v2
                 with:
                 with:
@@ -215,3 +219,4 @@ jobs:
                     push: ${{ github.event_name != 'pull_request' }}
                     push: ${{ github.event_name != 'pull_request' }}
                     tags: |
                     tags: |
                         uozi/nginx-ui:latest
                         uozi/nginx-ui:latest
+                        uozi/nginx-ui:${{ steps.get_version.outputs.VERSION }}