mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-18 02:40:45 +00:00
fix blank output image name (#515)
This commit is contained in:
parent
b5358663fe
commit
f6ee225293
1 changed files with 5 additions and 6 deletions
11
.github/workflows/ci.yml
vendored
11
.github/workflows/ci.yml
vendored
|
|
@ -81,12 +81,13 @@ jobs:
|
||||||
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:
|
outputs:
|
||||||
output1: ${{ steps.out.outputs.image_name }}
|
output1: ${{ steps.docker.outputs.image_name }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Login to Docker Hub
|
- name: Login to Docker Hub
|
||||||
run: echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
|
run: echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
|
||||||
- name: Build and Push Docker images
|
- name: Build and Push Docker images
|
||||||
|
id: docker
|
||||||
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}
|
image_name=xinfinorg/devnet:dev-upgrade-${git_hash}
|
||||||
|
|
@ -98,10 +99,8 @@ jobs:
|
||||||
docker push $image_name
|
docker push $image_name
|
||||||
docker push xinfinorg/devnet:latest
|
docker push xinfinorg/devnet:latest
|
||||||
docker push xinfinorg/devnet:previous
|
docker push xinfinorg/devnet:previous
|
||||||
|
echo "image_name=$image_name"
|
||||||
- name: Output image name
|
echo "image_name=$image_name" >> "$GITHUB_OUTPUT"
|
||||||
id: out
|
|
||||||
run: echo "image_name=$image_name" >> "$GITHUB_OUTPUT"
|
|
||||||
|
|
||||||
devnet_terraform_apply:
|
devnet_terraform_apply:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
@ -158,7 +157,7 @@ jobs:
|
||||||
options: |
|
options: |
|
||||||
--inventory inventory.yaml
|
--inventory inventory.yaml
|
||||||
--extra-vars network=ec2_rpcs
|
--extra-vars network=ec2_rpcs
|
||||||
--extra-vars rpc_image=${{ needs.devnet_build_push.outputs.image_name }}
|
--extra-vars rpc_image=${{ needs.devnet_build_push.outputs.output1 }}
|
||||||
|
|
||||||
devnet_dev-upgrade_node:
|
devnet_dev-upgrade_node:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue