This commit is contained in:
parent
021dfaf045
commit
f4f1ad05bf
9
.github/workflows/tags.yml
vendored
9
.github/workflows/tags.yml
vendored
@ -20,18 +20,19 @@ jobs:
|
|||||||
- name: install dependencies
|
- name: install dependencies
|
||||||
run: go mod tidy
|
run: go mod tidy
|
||||||
|
|
||||||
- name: set env
|
- name: set shortsha
|
||||||
|
id: set-sha
|
||||||
run: |
|
run: |
|
||||||
git rev-parse --short HEAD >> ./shortsha
|
echo "shortsha=$(git rev-parse --short HEAD)" >> GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Build amd64
|
- name: Build amd64
|
||||||
run: |
|
run: |
|
||||||
|
|
||||||
shortsha=`git rev-parse --short HEAD` GOOS=linux GOARCH=amd64 go build -o bin/ddns_amd64_$TAG_VERSION "-X 'main.Shortsha=$shortsha' -X 'main.Version=$TAG_VERSION' -X 'main.Aarch=amd64'" ./cmd/...
|
shortsha=`git rev-parse --short HEAD` GOOS=linux GOARCH=amd64 go build -o bin/ddns_amd64_$TAG_VERSION "-X 'main.Shortsha=${{ steps.set-sha.outputs.shortsha }}' -X 'main.Version=$TAG_VERSION' -X 'main.Aarch=amd64'" ./cmd/...
|
||||||
|
|
||||||
- name: Build arm64
|
- name: Build arm64
|
||||||
run: |
|
run: |
|
||||||
GOOS=linux GOARCH=arm64 go build -o bin/ddns_arm64_$TAG_VERSION "-X 'main.Shortsha=$shortsha' -X 'main.Version=$TAG_VERSION' -X 'main.Aarch=arm64'" ./cmd/...
|
GOOS=linux GOARCH=arm64 go build -o bin/ddns_arm64_$TAG_VERSION "-X 'main.Shortsha=${{ steps.set-sha.outputs.shortsha }}' -X 'main.Version=$TAG_VERSION' -X 'main.Aarch=arm64'" ./cmd/...
|
||||||
|
|
||||||
- name: push generic registry amd64
|
- name: push generic registry amd64
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user