This commit is contained in:
parent
daf8e2ecf6
commit
ded958c900
25
.github/workflows/tags.yml
vendored
25
.github/workflows/tags.yml
vendored
@ -14,14 +14,29 @@ jobs:
|
|||||||
go-version: '1.23.x'
|
go-version: '1.23.x'
|
||||||
- name: install dependencies
|
- name: install dependencies
|
||||||
run: go mod tidy
|
run: go mod tidy
|
||||||
- name: Build and push
|
|
||||||
|
- name: Build amd64
|
||||||
env:
|
env:
|
||||||
USERNAME: ${{ vars.USERNAME }}
|
USERNAME: ${{ vars.USERNAME }}
|
||||||
TOKEN: ${{ secrets.TOKEN }}
|
TOKEN: ${{ secrets.TOKEN }}
|
||||||
TAG_VERSION: ${{ github.ref_name }}
|
TAG_VERSION: ${{ github.ref_name }}
|
||||||
run: |
|
run: |
|
||||||
go build -v -o ./bin/ddnser-$TAG_VERSION ./cmd/...
|
GOOS=linux GOARCH=amd64 go build -v -o ./bin/ddns_amd64_$TAG_VERSION ./cmd/...
|
||||||
rm -rf .git/
|
|
||||||
find -type f | while read f; do zip ddnser-$TAG_VERSION.zip "$f"; done
|
- name: Build arm64
|
||||||
curl --user $USERNAME:$TOKEN --upload-file ./ddnser-$TAG_VERSION.zip http://10.0.0.171/api/packages/$USERNAME/go/upload
|
env:
|
||||||
|
USERNAME: ${{ vars.USERNAME }}
|
||||||
|
TOKEN: ${{ secrets.TOKEN }}
|
||||||
|
TAG_VERSION: ${{ github.ref_name }}
|
||||||
|
run: |
|
||||||
|
GOOS=linux GOARCH=arm64 go build -v -o ./bin/ddns_arm64_$TAG_VERSION ./cmd/...
|
||||||
|
|
||||||
|
- name: push generic registry amd64
|
||||||
|
run: |
|
||||||
|
curl --user $USERNAME:$TOKEN --upload-file ./bin/ddnser_amd64_$TAG_VERSION http://10.0.0.171/api/packages/$USERNAME/generic/ddns/amd64_$TAG_VERSION/ddns
|
||||||
|
|
||||||
|
- name: push generic registry amd64
|
||||||
|
run: |
|
||||||
|
curl --user $USERNAME:$TOKEN --upload-file ./bin/ddnser_arm64_$TAG_VERSION http://10.0.0.171/api/packages/$USERNAME/generic/ddns/arm64_$TAG_VERSION/ddns
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user