forked from rancher/webhook
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PANDARIA: Merge tag 'v0.6.1' into release/v0.6-ent
- Loading branch information
Showing
9 changed files
with
51 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: "Install yq" | ||
description: "Install yq from source" | ||
inputs: | ||
version: | ||
description: "yq version" | ||
default: v4.44.3 | ||
arch: | ||
description: "host arch" | ||
required: true | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: install yq | ||
shell: bash | ||
run: curl -fsL https://github.com/mikefarah/yq/releases/download/${{ inputs.version }}/yq_linux_${{ inputs.arch }}.tar.gz | tar xz && mv yq_linux_${{ inputs.arch }} /usr/bin/yq |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ RUN if [ "${ARCH}" = "amd64" ]; then \ | |
|
||
RUN GOBIN=/usr/local/bin go install go.uber.org/mock/[email protected] | ||
|
||
ENV DAPPER_ENV REPO TAG CROSS | ||
ENV DAPPER_ENV REPO TAG CROSS OAUTH_TOKEN | ||
ENV DAPPER_SOURCE /go/src/github.com/rancher/webhook/ | ||
ENV DAPPER_OUTPUT ./bin ./dist | ||
ENV DAPPER_DOCKER_SOCKET true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,10 +9,15 @@ mkdir -p bin | |
if [ "$(uname)" = "Linux" ]; then | ||
OTHER_LINKFLAGS="-extldflags -static -s" | ||
fi | ||
|
||
if [ "$OAUTH_TOKEN" != "" ]; then | ||
git config --global url."https://${OAUTH_TOKEN}:[email protected]/".insteadOf "https://github.com/" | ||
fi | ||
|
||
LINKFLAGS="-X main.Version=$VERSION" | ||
LINKFLAGS="-X main.GitCommit=$COMMIT $LINKFLAGS" | ||
CGO_ENABLED=0 go build -ldflags "$LINKFLAGS $OTHER_LINKFLAGS" -o bin/webhook | ||
if [ "$CROSS" = "true" ] && [ "$ARCH" = "amd64" ]; then | ||
GOOS=darwin go build -ldflags "$LINKFLAGS" -o bin/webhook-darwin | ||
GOOS=windows go build -ldflags "$LINKFLAGS" -o bin/webhook-windows-amd64.exe | ||
GOOS=darwin GOPRIVATE="github.com/cnrancher" go build -ldflags "$LINKFLAGS" -o bin/webhook-darwin | ||
GOOS=windows GOPRIVATE="github.com/cnrancher" go build -ldflags "$LINKFLAGS" -o bin/webhook-windows-amd64.exe | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters