@@ -50,24 +50,20 @@ jobs:
5050 registry : ghcr.io
5151 username : ${{ github.actor }}
5252 password : ${{ secrets.GITHUB_TOKEN }}
53- # - name: Login to the Ali Registry
54- # uses: docker/login-action@v3
55- # with:
56- # registry: ${{ env.ALIHUB_URL }}
57- # username: ${{ env.ALIHUB_USERNAME }}
58- # password: ${{ secrets.ALIHUB_TOKEN }}
5953
60- # - name: 设置go环境
61- # uses: actions/setup-go@v5
62- # with:
63- # go-version-file: "go.mod"
64- # cache-dependency-path: "go.sum"
65- # - name: 安装 UPX
66- # uses: crazy-max/ghaction-upx@v3
67- # with:
68- # install-only: true
69- # - run: go install github.com/authelia/gox@latest # setup gox
70- # - run: make gox-linux
54+ - name : 设置go环境
55+ uses : actions/setup-go@v5
56+ with :
57+ go-version-file : " go.mod"
58+ cache-dependency-path : " go.sum"
59+ - name : 安装 UPX
60+ uses : crazy-max/ghaction-upx@v3
61+ with :
62+ install-only : true
63+ - run : go install github.com/authelia/gox@latest # setup gox
64+ - run : |
65+ docker cp $(docker create --rm docker.cnb.cool/opsre/go-ldap-admin-ui):/app/dist public/static/dist
66+ make gox-linux
7167
7268 - name : Build and push
7369 uses : docker/build-push-action@v6
8278 ${{ env.DOCKERHUB_USERNAME }}/${{ env.IMAGE_REPONAME }}:latest
8379 ${{ env.DOCKERHUB_USERNAME }}/${{ env.IMAGE_REPONAME }}:${{ env.GITHUB_REF_NAME }}
8480 ${{ env.DOCKERHUB_USERNAME }}/${{ env.IMAGE_REPONAME }}:${{ steps.date.outputs.today }}
85- ghcr.io/${{ github.actor }}/${{ github. repository }}
86- ghcr.io/${{ github.actor }}/${{ github. repository }}:${{ env.GITHUB_REF_NAME }}
87- ghcr.io/${{ github.actor }}/${{ github. repository }}:${{ steps.date.outputs.today }}
81+ ghcr.io/${{ github.repository }}
82+ ghcr.io/${{ github.repository }}:${{ env.GITHUB_REF_NAME }}
83+ ghcr.io/${{ github.repository }}:${{ steps.date.outputs.today }}
0 commit comments