diff --git a/.github/workflows/liquidation-reconstitution.yml b/.github/workflows/liquidation-reconstitution.yml index 26c5ea3b..7648b78f 100644 --- a/.github/workflows/liquidation-reconstitution.yml +++ b/.github/workflows/liquidation-reconstitution.yml @@ -37,8 +37,8 @@ on: required: false default: latest type: string - a3p_image_tag: - description: 'Docker image tag for the a3p chain to use in testing' + docker_image: + description: 'Docker image for the a3p chain to use in testing' required: false type: string pull_request: @@ -76,6 +76,6 @@ jobs: bidder_mnemonic: ${{ inputs.bidder_mnemonic }} bidder_address: ${{ inputs.bidder_address }} base_image: ${{ inputs.base_image || 'latest' }} - a3p_image_tag: ${{ inputs.a3p_image_tag || 'latest' }} + docker_image: ${{ inputs.docker_image || 'ghcr.io/agoric/agoric-3-proposals:latest' }} secrets: inherit diff --git a/.github/workflows/liquidation.yml b/.github/workflows/liquidation.yml index 133202ec..83abff04 100644 --- a/.github/workflows/liquidation.yml +++ b/.github/workflows/liquidation.yml @@ -37,8 +37,8 @@ on: required: false default: latest type: string - a3p_image_tag: - description: 'Docker image tag for the a3p chain to use in testing' + docker_image: + description: 'Docker image for the a3p chain to use in testing' required: false type: string pull_request: @@ -76,6 +76,6 @@ jobs: bidder_mnemonic: ${{ inputs.bidder_mnemonic }} bidder_address: ${{ inputs.bidder_address }} base_image: ${{ inputs.base_image || 'latest' }} - a3p_image_tag: ${{ inputs.a3p_image_tag || 'latest' }} + docker_image: ${{ inputs.docker_image || 'ghcr.io/agoric/agoric-3-proposals:latest' }} secrets: inherit diff --git a/.github/workflows/reusable-workflow.yml b/.github/workflows/reusable-workflow.yml index 098327e9..956d9be8 100644 --- a/.github/workflows/reusable-workflow.yml +++ b/.github/workflows/reusable-workflow.yml @@ -35,8 +35,8 @@ on: required: false default: latest type: string - a3p_image_tag: - description: 'Docker image tag for the a3p chain to use in testing' + docker_image: + description: 'Docker image for the a3p chain to use in testing' required: false type: string @@ -59,6 +59,15 @@ jobs: project_id: 'simulationlab' workload_identity_provider: 'projects/60745596728/locations/global/workloadIdentityPools/github/providers/dapp-inter' + - name: Docker Image Used For E2E Testing + run: | + if [ -z "${{ inputs.docker_image }}" ]; then + echo "Error: Docker image not provided." + exit 1 + else + echo "Docker Image: ${{ inputs.docker_image }}" + fi + - name: Run e2e tests run: ${{ inputs.docker_compose_command }} env: @@ -66,7 +75,7 @@ jobs: SYNPRESS_PROFILE: ${{ inputs.AGORIC_NET == 'local' && 'synpress' || 'daily-tests' }} CYPRESS_AGORIC_NET: ${{ inputs.AGORIC_NET }} # for docker-compose.yml - A3P_IMAGE_TAG: ${{ inputs.a3p_image_tag }} + DOCKER_IMAGE: ${{ inputs.docker_image }} COMPOSE_DOCKER_CLI_BUILD: 1 DOCKER_BUILDKIT: 1 DOCKER_DEFAULT_PLATFORM: linux/amd64 diff --git a/.github/workflows/vaults.yml b/.github/workflows/vaults.yml index e573fea9..b3172742 100644 --- a/.github/workflows/vaults.yml +++ b/.github/workflows/vaults.yml @@ -30,8 +30,8 @@ on: description: 'The mnemonic phrase for the account to use in testing' required: false type: string - a3p_image_tag: - description: 'Docker image tag for the a3p chain to use in testing' + docker_image: + description: 'Docker image for the a3p chain to use in testing' required: false type: string @@ -57,6 +57,6 @@ jobs: || 'local' }} mnemonic_phrase: ${{ inputs.phrase }} - a3p_image_tag: ${{ inputs.a3p_image_tag || 'latest' }} + docker_image: ${{ inputs.docker_image || 'ghcr.io/agoric/agoric-3-proposals:latest' }} secrets: inherit diff --git a/test/e2e/docker-compose-base.yml b/test/e2e/docker-compose-base.yml index 3b5fb2ae..1e53ff23 100644 --- a/test/e2e/docker-compose-base.yml +++ b/test/e2e/docker-compose-base.yml @@ -99,7 +99,7 @@ services: profiles: - synpress container_name: agoric_chain - image: ghcr.io/agoric/agoric-3-proposals:${A3P_IMAGE_TAG} + image: ${DOCKER_IMAGE} logging: driver: none platform: linux/amd64