mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-24 07:34:31 +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
|
||||
if: github.ref == 'refs/heads/dev-upgrade' && !startsWith(github.ref, 'refs/tags/')
|
||||
needs: tests
|
||||
outputs:
|
||||
output1: ${{ steps.out.outputs.image_name }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Login to Docker Hub
|
||||
|
|
@ -87,24 +89,19 @@ jobs:
|
|||
- name: Build and Push Docker images
|
||||
run: |
|
||||
git_hash=$(git rev-parse --short "$GITHUB_SHA")
|
||||
image_name=xinfinorg/devnet:dev-upgrade-${git_hash}
|
||||
docker pull xinfinorg/devnet:latest
|
||||
docker tag xinfinorg/devnet:latest xinfinorg/devnet:previous
|
||||
docker rmi xinfinorg/devnet:latest
|
||||
docker build -t xinfinorg/devnet:latest -f cicd/Dockerfile .
|
||||
docker tag xinfinorg/devnet:latest xinfinorg/devnet:dev-upgrade-${git_hash}
|
||||
docker push xinfinorg/devnet:dev-upgrade-${git_hash}
|
||||
docker tag xinfinorg/devnet:latest $image_name
|
||||
docker push $image_name
|
||||
docker push xinfinorg/devnet:latest
|
||||
docker push xinfinorg/devnet:previous
|
||||
|
||||
- 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 rpc_image=xinfinorg/devnet:dev-upgrade-${git_hash}
|
||||
- name: Output image name
|
||||
id: out
|
||||
run: echo "image_name=$image_name" >> "$GITHUB_OUTPUT"
|
||||
|
||||
devnet_terraform_apply:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
@ -152,6 +149,17 @@ jobs:
|
|||
terraform init ${{ env.tf_init_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:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.ref == 'refs/heads/dev-upgrade' && !startsWith(github.ref, 'refs/tags/')
|
||||
|
|
|
|||
Loading…
Reference in a new issue