diff --git a/.github/workflows/deploy.py b/.github/workflows/deploy.py index 89cb3e903..a371209a9 100644 --- a/.github/workflows/deploy.py +++ b/.github/workflows/deploy.py @@ -30,7 +30,7 @@ DOCKER_USER = os.environ.get("DHUBU") DOCKER_PASSWORD = os.environ.get("DHUBP") -DEVNET_SOLANA_URL = os.environ.get("DEVNET_SOLANA_URL") +MAINNET_SOLANA_URL = os.environ.get("MAINNET_SOLANA_URL") IMAGE_NAME = os.environ.get("IMAGE_NAME", "evm_loader") RUN_LINK_REPO = os.environ.get("RUN_LINK_REPO") DOCKERHUB_ORG_NAME = os.environ.get("DOCKERHUB_ORG_NAME") @@ -128,7 +128,7 @@ def build_docker_image(evm_sha_tag): "SOLANA_IMAGE": solana_image, "SOLANA_BPF_VERSION": SOLANA_BPF_VERSION, "DOCKERHUB_ORG_NAME": DOCKERHUB_ORG_NAME, - "DEVNET_SOLANA_URL": DEVNET_SOLANA_URL} + "MAINNET_SOLANA_URL": MAINNET_SOLANA_URL} tag = f"{DOCKERHUB_ORG_NAME}/{IMAGE_NAME}:{evm_sha_tag}" click.echo("start build") diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index 68734a665..2f9a00e85 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -14,7 +14,7 @@ on: env: DHUBU: ${{secrets.DHUBU}} DHUBP: ${{secrets.DHUBP}} - DEVNET_SOLANA_URL: ${{secrets.DEVNET_SOLANA_URL}} + MAINNET_SOLANA_URL: ${{secrets.MAINNET_SOLANA_URL}} PROXY_ENDPOINT: "https://api.github.com/repos/${{ github.repository_owner }}/neon-proxy.py" NEON_TESTS_ENDPOINT: ${{vars.NEON_TESTS_ENDPOINT}} DOCKERHUB_ORG_NAME: ${{vars.DOCKERHUB_ORG_NAME}} diff --git a/Dockerfile b/Dockerfile index 4bf4276fb..d7d0097f2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -36,15 +36,8 @@ FROM ${DOCKERHUB_ORG_NAME}/neon_test_programs:latest AS neon_test_programs # Define solana-image that contains utility FROM builder AS base -ARG DEVNET_SOLANA_URL -RUN solana program dump metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s /opt/metaplex.so --url mainnet-beta -RUN solana account 7UVimffxr9ow1uXYxsr4LHAcV58mLzhmwaeKvJ1pjLiE --output-file pyth_sol.json --output json-compact --url ${DEVNET_SOLANA_URL} -RUN solana account F2VfCymdNQiCa8Vyg5E7BwEv9UPwfm8cVN6eqQLqXiGo --output-file pyth_neon.json --output json-compact --url ${DEVNET_SOLANA_URL} -RUN solana account 42amVS4KgzR9rA28tkVYqVXjq9Qa8dcZQMbH5EYFX6XC --output-file pyth_eth.json --output json-compact --url ${DEVNET_SOLANA_URL} -RUN solana account Dpw1EAVrSB1ibxiDQyTAW6Zip3J4Btk2x4SgApQCeFbX --output-file pyth_usdc.json --output json-compact --url ${DEVNET_SOLANA_URL} -RUN solana account HT2PLQBcG5EiCcNSaMHAjSgd9F98ecpATbk4Sk5oYuM --output-file pyth_usdt.json --output json-compact --url ${DEVNET_SOLANA_URL} - - +ARG MAINNET_SOLANA_URL +RUN solana program dump metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s /opt/metaplex.so --url ${MAINNET_SOLANA_URL} COPY --from=evm-loader-builder /opt/neon-evm/evm_loader/target/deploy/evm_loader*.so /opt/ COPY --from=evm-loader-builder /opt/neon-evm/evm_loader/target/deploy/evm_loader-dump.txt /opt/