mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-18 10:50:44 +00:00
fix calling parameters (#506)
This commit is contained in:
parent
d12d61621a
commit
553c1d4fa7
1 changed files with 19 additions and 11 deletions
30
.github/workflows/ci.yml
vendored
30
.github/workflows/ci.yml
vendored
|
|
@ -80,6 +80,8 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.ref == 'refs/heads/dev-upgrade' && !startsWith(github.ref, 'refs/tags/')
|
if: github.ref == 'refs/heads/dev-upgrade' && !startsWith(github.ref, 'refs/tags/')
|
||||||
needs: tests
|
needs: tests
|
||||||
|
outputs:
|
||||||
|
output1: ${{ steps.out.outputs.image_name }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Login to Docker Hub
|
- name: Login to Docker Hub
|
||||||
|
|
@ -87,24 +89,19 @@ jobs:
|
||||||
- name: Build and Push Docker images
|
- name: Build and Push Docker images
|
||||||
run: |
|
run: |
|
||||||
git_hash=$(git rev-parse --short "$GITHUB_SHA")
|
git_hash=$(git rev-parse --short "$GITHUB_SHA")
|
||||||
|
image_name=xinfinorg/devnet:dev-upgrade-${git_hash}
|
||||||
docker pull xinfinorg/devnet:latest
|
docker pull xinfinorg/devnet:latest
|
||||||
docker tag xinfinorg/devnet:latest xinfinorg/devnet:previous
|
docker tag xinfinorg/devnet:latest xinfinorg/devnet:previous
|
||||||
docker rmi xinfinorg/devnet:latest
|
docker rmi xinfinorg/devnet:latest
|
||||||
docker build -t xinfinorg/devnet:latest -f cicd/Dockerfile .
|
docker build -t xinfinorg/devnet:latest -f cicd/Dockerfile .
|
||||||
docker tag xinfinorg/devnet:latest xinfinorg/devnet:dev-upgrade-${git_hash}
|
docker tag xinfinorg/devnet:latest $image_name
|
||||||
docker push xinfinorg/devnet:dev-upgrade-${git_hash}
|
docker push $image_name
|
||||||
docker push xinfinorg/devnet:latest
|
docker push xinfinorg/devnet:latest
|
||||||
docker push xinfinorg/devnet:previous
|
docker push xinfinorg/devnet:previous
|
||||||
|
|
||||||
- name: Update RPC nodes image
|
- name: Output image name
|
||||||
uses: dawidd6/action-ansible-playbook@v2
|
id: out
|
||||||
with:
|
run: echo "image_name=$image_name" >> "$GITHUB_OUTPUT"
|
||||||
playbook: playbooks/update-image.yaml
|
|
||||||
directory: ./cicd/ansible
|
|
||||||
key: ${{secrets.SSH_PRIVATE_KEY_DEVNET}}
|
|
||||||
options: |
|
|
||||||
--inventory inventory.yaml
|
|
||||||
--extra-vars rpc_image=xinfinorg/devnet:dev-upgrade-${git_hash}
|
|
||||||
|
|
||||||
devnet_terraform_apply:
|
devnet_terraform_apply:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
@ -152,6 +149,17 @@ jobs:
|
||||||
terraform init ${{ env.tf_init_cli_options }}
|
terraform init ${{ env.tf_init_cli_options }}
|
||||||
terraform apply ${{ env.tf_apply_cli_options }}
|
terraform apply ${{ env.tf_apply_cli_options }}
|
||||||
|
|
||||||
|
- name: Update RPC nodes image
|
||||||
|
uses: dawidd6/action-ansible-playbook@v2
|
||||||
|
with:
|
||||||
|
playbook: playbooks/update-image.yaml
|
||||||
|
directory: ./cicd/ansible
|
||||||
|
key: ${{secrets.SSH_PRIVATE_KEY_DEVNET}}
|
||||||
|
options: |
|
||||||
|
--inventory inventory.yaml
|
||||||
|
--extra-vars network=ec2-rpcs
|
||||||
|
--extra-vars rpc_image=${{ needs.devnet_build_push.outputs.image_name }}
|
||||||
|
|
||||||
devnet_dev-upgrade_node:
|
devnet_dev-upgrade_node:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.ref == 'refs/heads/dev-upgrade' && !startsWith(github.ref, 'refs/tags/')
|
if: github.ref == 'refs/heads/dev-upgrade' && !startsWith(github.ref, 'refs/tags/')
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue