CI: install gopogh via go install
parent
eb18375d46
commit
c9f778da96
|
@ -63,6 +63,9 @@ jobs:
|
||||||
GOPOGH_RESULT: ""
|
GOPOGH_RESULT: ""
|
||||||
SHELL: "/bin/bash" # To prevent https://github.com/kubernetes/minikube/issues/6643
|
SHELL: "/bin/bash" # To prevent https://github.com/kubernetes/minikube/issues/6643
|
||||||
steps:
|
steps:
|
||||||
|
- uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568
|
||||||
|
with:
|
||||||
|
go-version: ${{env.GO_VERSION}}
|
||||||
- name: Install tools
|
- name: Install tools
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
@ -95,8 +98,7 @@ jobs:
|
||||||
- name: Install gopogh
|
- name: Install gopogh
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
curl -LO https://github.com/medyagh/gopogh/releases/download/v0.13.0/gopogh-linux-arm64
|
go install github.com/medyagh/gopogh/cmd/gopogh@v0.13.0
|
||||||
sudo install gopogh-linux-arm64 /usr/local/bin/gopogh
|
|
||||||
|
|
||||||
- name: Docker Info
|
- name: Docker Info
|
||||||
shell: bash
|
shell: bash
|
||||||
|
@ -116,9 +118,6 @@ jobs:
|
||||||
echo "--------------------------"
|
echo "--------------------------"
|
||||||
hostname || true
|
hostname || true
|
||||||
echo "--------------------------"
|
echo "--------------------------"
|
||||||
- uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568
|
|
||||||
with:
|
|
||||||
go-version: ${{env.GO_VERSION}}
|
|
||||||
- name: Download Binaries
|
- name: Download Binaries
|
||||||
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a
|
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -126,11 +126,9 @@ jobs:
|
||||||
with:
|
with:
|
||||||
go-version: ${{env.GO_VERSION}}
|
go-version: ${{env.GO_VERSION}}
|
||||||
- name: Install gopogh
|
- name: Install gopogh
|
||||||
|
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
curl -LO https://github.com/medyagh/gopogh/releases/download/v0.13.0/gopogh-linux-amd64
|
go install github.com/medyagh/gopogh/cmd/gopogh@v0.13.0
|
||||||
sudo install gopogh-linux-amd64 /usr/local/bin/gopogh
|
|
||||||
- name: Download Binaries
|
- name: Download Binaries
|
||||||
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a
|
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a
|
||||||
with:
|
with:
|
||||||
|
@ -228,8 +226,7 @@ jobs:
|
||||||
- name: Install gopogh
|
- name: Install gopogh
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
curl -LO https://github.com/medyagh/gopogh/releases/download/v0.13.0/gopogh-linux-amd64
|
go install github.com/medyagh/gopogh/cmd/gopogh@v0.13.0
|
||||||
sudo install gopogh-linux-amd64 /usr/local/bin/gopogh
|
|
||||||
- name: Download Binaries
|
- name: Download Binaries
|
||||||
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a
|
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a
|
||||||
with:
|
with:
|
||||||
|
@ -331,8 +328,7 @@ jobs:
|
||||||
- name: Install gopogh
|
- name: Install gopogh
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
curl -LO https://github.com/medyagh/gopogh/releases/download/v0.13.0/gopogh-linux-amd64
|
go install github.com/medyagh/gopogh/cmd/gopogh@v0.13.0
|
||||||
sudo install gopogh-linux-amd64 /usr/local/bin/gopogh
|
|
||||||
- name: Download Binaries
|
- name: Download Binaries
|
||||||
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a
|
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a
|
||||||
with:
|
with:
|
||||||
|
@ -415,11 +411,9 @@ jobs:
|
||||||
with:
|
with:
|
||||||
go-version: ${{env.GO_VERSION}}
|
go-version: ${{env.GO_VERSION}}
|
||||||
- name: Install gopogh
|
- name: Install gopogh
|
||||||
|
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
curl -LO https://github.com/medyagh/gopogh/releases/download/v0.13.0/gopogh-darwin-amd64
|
go install github.com/medyagh/gopogh/cmd/gopogh@v0.13.0
|
||||||
sudo install gopogh-darwin-amd64 /usr/local/bin/gopogh
|
|
||||||
- name: Install docker
|
- name: Install docker
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
@ -533,11 +527,9 @@ jobs:
|
||||||
curl -L https://github.com/kubernetes-sigs/cri-tools/releases/download/$CRICTL_VERSION/crictl-${CRICTL_VERSION}-linux-amd64.tar.gz --output crictl-${CRICTL_VERSION}-linux-amd64.tar.gz
|
curl -L https://github.com/kubernetes-sigs/cri-tools/releases/download/$CRICTL_VERSION/crictl-${CRICTL_VERSION}-linux-amd64.tar.gz --output crictl-${CRICTL_VERSION}-linux-amd64.tar.gz
|
||||||
sudo tar zxvf crictl-$CRICTL_VERSION-linux-amd64.tar.gz -C /usr/local/bin
|
sudo tar zxvf crictl-$CRICTL_VERSION-linux-amd64.tar.gz -C /usr/local/bin
|
||||||
- name: Install gopogh
|
- name: Install gopogh
|
||||||
|
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
curl -LO https://github.com/medyagh/gopogh/releases/download/v0.13.0/gopogh-linux-amd64
|
go install github.com/medyagh/gopogh/cmd/gopogh@v0.13.0
|
||||||
sudo install gopogh-linux-amd64 /usr/local/bin/gopogh
|
|
||||||
- name: Set fs.protected_regular
|
- name: Set fs.protected_regular
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
|
|
@ -126,8 +126,7 @@ jobs:
|
||||||
- name: Install gopogh
|
- name: Install gopogh
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
curl -LO https://github.com/medyagh/gopogh/releases/download/v0.13.0/gopogh-linux-amd64
|
go install github.com/medyagh/gopogh/cmd/gopogh@v0.13.0
|
||||||
sudo install gopogh-linux-amd64 /usr/local/bin/gopogh
|
|
||||||
- name: Download Binaries
|
- name: Download Binaries
|
||||||
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a
|
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a
|
||||||
with:
|
with:
|
||||||
|
@ -226,8 +225,7 @@ jobs:
|
||||||
- name: Install gopogh
|
- name: Install gopogh
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
curl -LO https://github.com/medyagh/gopogh/releases/download/v0.13.0/gopogh-linux-amd64
|
go install github.com/medyagh/gopogh/cmd/gopogh@v0.13.0
|
||||||
sudo install gopogh-linux-amd64 /usr/local/bin/gopogh
|
|
||||||
- name: Download Binaries
|
- name: Download Binaries
|
||||||
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a
|
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a
|
||||||
with:
|
with:
|
||||||
|
@ -342,11 +340,9 @@ jobs:
|
||||||
with:
|
with:
|
||||||
go-version: ${{env.GO_VERSION}}
|
go-version: ${{env.GO_VERSION}}
|
||||||
- name: Install gopogh
|
- name: Install gopogh
|
||||||
|
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
curl -LO https://github.com/medyagh/gopogh/releases/download/v0.13.0/gopogh-linux-amd64
|
go install github.com/medyagh/gopogh/cmd/gopogh@v0.13.0
|
||||||
sudo install gopogh-linux-amd64 /usr/local/bin/gopogh
|
|
||||||
- name: Download Binaries
|
- name: Download Binaries
|
||||||
uses: actions/download-artifact@9782bd6a9848b53b110e712e20e42d89988822b7
|
uses: actions/download-artifact@9782bd6a9848b53b110e712e20e42d89988822b7
|
||||||
with:
|
with:
|
||||||
|
@ -449,8 +445,7 @@ jobs:
|
||||||
- name: Install gopogh
|
- name: Install gopogh
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
curl -LO https://github.com/medyagh/gopogh/releases/download/v0.13.0/gopogh-linux-amd64
|
go install github.com/medyagh/gopogh/cmd/gopogh@v0.13.0
|
||||||
sudo install gopogh-linux-amd64 /usr/local/bin/gopogh
|
|
||||||
- name: Download Binaries
|
- name: Download Binaries
|
||||||
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a
|
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a
|
||||||
with:
|
with:
|
||||||
|
@ -534,11 +529,9 @@ jobs:
|
||||||
with:
|
with:
|
||||||
go-version: ${{env.GO_VERSION}}
|
go-version: ${{env.GO_VERSION}}
|
||||||
- name: Install gopogh
|
- name: Install gopogh
|
||||||
|
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
curl -LO https://github.com/medyagh/gopogh/releases/download/v0.13.0/gopogh-darwin-amd64
|
go install github.com/medyagh/gopogh/cmd/gopogh@v0.13.0
|
||||||
sudo install gopogh-darwin-amd64 /usr/local/bin/gopogh
|
|
||||||
- name: Install docker
|
- name: Install docker
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
@ -653,11 +646,9 @@ jobs:
|
||||||
curl -L https://github.com/kubernetes-sigs/cri-tools/releases/download/$CRICTL_VERSION/crictl-${CRICTL_VERSION}-linux-amd64.tar.gz --output crictl-${CRICTL_VERSION}-linux-amd64.tar.gz
|
curl -L https://github.com/kubernetes-sigs/cri-tools/releases/download/$CRICTL_VERSION/crictl-${CRICTL_VERSION}-linux-amd64.tar.gz --output crictl-${CRICTL_VERSION}-linux-amd64.tar.gz
|
||||||
sudo tar zxvf crictl-$CRICTL_VERSION-linux-amd64.tar.gz -C /usr/local/bin
|
sudo tar zxvf crictl-$CRICTL_VERSION-linux-amd64.tar.gz -C /usr/local/bin
|
||||||
- name: Install gopogh
|
- name: Install gopogh
|
||||||
|
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
curl -LO https://github.com/medyagh/gopogh/releases/download/v0.13.0/gopogh-linux-amd64
|
go install github.com/medyagh/gopogh/cmd/gopogh@v0.13.0
|
||||||
sudo install gopogh-linux-amd64 /usr/local/bin/gopogh
|
|
||||||
- name: Set fs.protected_regular
|
- name: Set fs.protected_regular
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
|
|
@ -94,7 +94,7 @@ else
|
||||||
ln -s /usr/local/bin/gtimeout /usr/local/bin/timeout || true
|
ln -s /usr/local/bin/gtimeout /usr/local/bin/timeout || true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# installing golang so we could do go get for gopogh
|
# installing golang so we can go install gopogh
|
||||||
./installers/check_install_golang.sh "/usr/local" || true
|
./installers/check_install_golang.sh "/usr/local" || true
|
||||||
|
|
||||||
# install docker and kubectl if not present
|
# install docker and kubectl if not present
|
||||||
|
@ -428,8 +428,7 @@ if ! type "jq" > /dev/null; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo ">> Installing gopogh"
|
echo ">> Installing gopogh"
|
||||||
curl -LO "https://github.com/medyagh/gopogh/releases/download/v0.13.0/gopogh-${OS_ARCH}"
|
go install github.com/medyagh/gopogh/cmd/gopogh@v0.13.0
|
||||||
sudo install "gopogh-${OS_ARCH}" /usr/local/bin/gopogh
|
|
||||||
|
|
||||||
|
|
||||||
echo ">> Running gopogh"
|
echo ">> Running gopogh"
|
||||||
|
|
|
@ -34,17 +34,17 @@ var (
|
||||||
schema = map[string]update.Item{
|
schema = map[string]update.Item{
|
||||||
".github/workflows/master.yml": {
|
".github/workflows/master.yml": {
|
||||||
Replace: map[string]string{
|
Replace: map[string]string{
|
||||||
`(?U)https://github.com/medyagh/gopogh/releases/download/.*/gopogh`: `https://github.com/medyagh/gopogh/releases/download/{{.StableVersion}}/gopogh`,
|
`github.com/medyagh/gopogh/cmd/gopogh@.*`: `github.com/medyagh/gopogh/cmd/gopogh@{{.StableVersion}}`,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
".github/workflows/pr.yml": {
|
".github/workflows/pr.yml": {
|
||||||
Replace: map[string]string{
|
Replace: map[string]string{
|
||||||
`(?U)https://github.com/medyagh/gopogh/releases/download/.*/gopogh`: `https://github.com/medyagh/gopogh/releases/download/{{.StableVersion}}/gopogh`,
|
`github.com/medyagh/gopogh/cmd/gopogh@.*`: `github.com/medyagh/gopogh/cmd/gopogh@{{.StableVersion}}`,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
".github/workflows/functional_verified.yml": {
|
".github/workflows/functional_verified.yml": {
|
||||||
Replace: map[string]string{
|
Replace: map[string]string{
|
||||||
`(?U)https://github.com/medyagh/gopogh/releases/download/.*/gopogh`: `https://github.com/medyagh/gopogh/releases/download/{{.StableVersion}}/gopogh`,
|
`github.com/medyagh/gopogh/cmd/gopogh@.*`: `github.com/medyagh/gopogh/cmd/gopogh@{{.StableVersion}}`,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"hack/jenkins/common.ps1": {
|
"hack/jenkins/common.ps1": {
|
||||||
|
@ -54,7 +54,7 @@ var (
|
||||||
},
|
},
|
||||||
"hack/jenkins/common.sh": {
|
"hack/jenkins/common.sh": {
|
||||||
Replace: map[string]string{
|
Replace: map[string]string{
|
||||||
`(?U)https://github.com/medyagh/gopogh/releases/download/.*/gopogh`: `https://github.com/medyagh/gopogh/releases/download/{{.StableVersion}}/gopogh`,
|
`github.com/medyagh/gopogh/cmd/gopogh@.*`: `github.com/medyagh/gopogh/cmd/gopogh@{{.StableVersion}}`,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue