mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 21:31:37 +00:00
temp disable devnet deploy ci for devnet tshoot.yml
This commit is contained in:
parent
3fecfcaa76
commit
02835593af
1 changed files with 33 additions and 33 deletions
66
.github/workflows/ci.yml
vendored
66
.github/workflows/ci.yml
vendored
|
|
@ -100,39 +100,39 @@ jobs:
|
|||
echo "image_name=$image_name"
|
||||
echo "image_name=$image_name" >> "$GITHUB_OUTPUT"
|
||||
|
||||
devnet_k8_apply:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.ref == 'refs/heads/dev-upgrade' && !startsWith(github.ref, 'refs/tags/')
|
||||
needs: devnet_build_push
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set up kubectl
|
||||
uses: azure/setup-kubectl@v4
|
||||
with:
|
||||
version: 'v1.19.11'
|
||||
- name: Apply new image version to Kubernetes deployments
|
||||
run: |
|
||||
mkdir -p $HOME/.kube
|
||||
echo "${{ secrets.KUBE_CONFIG }}" | base64 --decode > $HOME/.kube/config
|
||||
chmod 600 $HOME/.kube/config
|
||||
git_hash=$(git rev-parse --short "$GITHUB_SHA")
|
||||
masternodes=$(kubectl get deployment -o json| jq -r '.items[] | select(.metadata.name | test("devnet")) | "\(.metadata.name)"')
|
||||
rpcs=$(kubectl get deployment -o json| jq -r '.items[] | select(.metadata.name | test("rpc")) | "\(.metadata.name)"')
|
||||
# devnet_k8_apply:
|
||||
# runs-on: ubuntu-latest
|
||||
# if: github.ref == 'refs/heads/dev-upgrade' && !startsWith(github.ref, 'refs/tags/')
|
||||
# needs: devnet_build_push
|
||||
# steps:
|
||||
# - uses: actions/checkout@v4
|
||||
# - name: Set up kubectl
|
||||
# uses: azure/setup-kubectl@v4
|
||||
# with:
|
||||
# version: 'v1.19.11'
|
||||
# - name: Apply new image version to Kubernetes deployments
|
||||
# run: |
|
||||
# mkdir -p $HOME/.kube
|
||||
# echo "${{ secrets.KUBE_CONFIG }}" | base64 --decode > $HOME/.kube/config
|
||||
# chmod 600 $HOME/.kube/config
|
||||
# git_hash=$(git rev-parse --short "$GITHUB_SHA")
|
||||
# masternodes=$(kubectl get deployment -o json| jq -r '.items[] | select(.metadata.name | test("devnet")) | "\(.metadata.name)"')
|
||||
# rpcs=$(kubectl get deployment -o json| jq -r '.items[] | select(.metadata.name | test("rpc")) | "\(.metadata.name)"')
|
||||
|
||||
while read -r name; do
|
||||
kubectl set image deployment/$name $name=xinfinorg/devnet:dev-upgrade-${git_hash} || true
|
||||
done <<< "$masternodes"
|
||||
# while read -r name; do
|
||||
# kubectl set image deployment/$name $name=xinfinorg/devnet:dev-upgrade-${git_hash} || true
|
||||
# done <<< "$masternodes"
|
||||
|
||||
while read -r name; do
|
||||
kubectl set image deployment/$name $name=xinfinorg/devnet:dev-upgrade-${git_hash} || true
|
||||
done <<< "$rpcs"
|
||||
# while read -r name; do
|
||||
# kubectl set image deployment/$name $name=xinfinorg/devnet:dev-upgrade-${git_hash} || true
|
||||
# done <<< "$rpcs"
|
||||
|
||||
devnet_send_notification:
|
||||
runs-on: ubuntu-latest
|
||||
needs: devnet_k8_apply
|
||||
if: github.ref == 'refs/heads/dev-upgrade' && !startsWith(github.ref, 'refs/tags/')
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Send deployment notification
|
||||
run: |
|
||||
curl --location --request POST "66.94.98.186:8080/deploy?environment=devnet&service=xdc&version=${GITHUB_SHA}"
|
||||
# devnet_send_notification:
|
||||
# runs-on: ubuntu-latest
|
||||
# needs: devnet_k8_apply
|
||||
# if: github.ref == 'refs/heads/dev-upgrade' && !startsWith(github.ref, 'refs/tags/')
|
||||
# steps:
|
||||
# - uses: actions/checkout@v4
|
||||
# - name: Send deployment notification
|
||||
# run: |
|
||||
# curl --location --request POST "66.94.98.186:8080/deploy?environment=devnet&service=xdc&version=${GITHUB_SHA}"
|
||||
|
|
|
|||
Loading…
Reference in a new issue