💚 修复流水线CI bug
This commit is contained in:
1 parent
082c369d41
commit
7ca776bfab
2 files changed
+34
-14
No files matched your search
@@ -29,9 +29,17 @@ jobs:
|
||||
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
|
||||
dep ensure
|
||||
fi
|
||||
|
||||
- name: Build
|
||||
run: go build -v .
|
||||
- name: Release
|
||||
uses: softprops/action-gh-release@v1
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
run: |
|
||||
ref=${{ github.ref }}
|
||||
go mod vendor
|
||||
docker build . -t goadminteam/go-admin:${ref##*/}-${{ github.sha }}
|
||||
docker tag goadminteam/go-admin:${ref##*/}-${{ github.sha }} goadminteam/go-admin:latest
|
||||
- uses: Azure/docker-login@v1
|
||||
with:
|
||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||
password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||
- run: |
|
||||
ref=${{ github.ref }}
|
||||
docker push goadminteam/go-admin:${ref##*/}-${{ github.sha }}
|
||||
docker push goadminteam/go-admin:latest
|
||||
Reference in new issue
Block a user