Skip to content

Commit d793f06

Browse files
committed
ci: add dynamic tagging to Docker setup
1 parent 32410f4 commit d793f06

File tree

5 files changed

+25
-2
lines changed

5 files changed

+25
-2
lines changed

.github/workflows/liquidation-reconstitution.yml

+6
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ on:
2929
description: 'bidder account address'
3030
required: false
3131
type: string
32+
base_image:
33+
description: 'Base image tag for agoric-sdk'
34+
required: false
35+
default: latest
36+
type: string
3237

3338
concurrency:
3439
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label ||
@@ -48,5 +53,6 @@ jobs:
4853
user1_address: ${{ inputs.user1_address }}
4954
bidder_mnemonic: ${{ inputs.bidder_mnemonic }}
5055
bidder_address: ${{ inputs.bidder_address }}
56+
base_image: ${{ inputs.base_image }}
5157

5258
secrets: inherit

.github/workflows/liquidation.yml

+6
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ on:
2929
description: 'bidder account address'
3030
required: false
3131
type: string
32+
base_image:
33+
description: 'Base image tag for agoric-sdk'
34+
required: false
35+
default: latest
36+
type: string
3237

3338
concurrency:
3439
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label ||
@@ -48,5 +53,6 @@ jobs:
4853
user1_address: ${{ inputs.user1_address }}
4954
bidder_mnemonic: ${{ inputs.bidder_mnemonic }}
5055
bidder_address: ${{ inputs.bidder_address }}
56+
base_image: ${{ inputs.base_image }}
5157

5258
secrets: inherit

.github/workflows/reusable-workflow.yml

+6
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ on:
3030
description: 'bidder account address'
3131
required: false
3232
type: string
33+
base_image:
34+
description: 'Base image tag for agoric-sdk'
35+
required: false
36+
default: latest
37+
type: string
3338

3439
jobs:
3540
e2e:
@@ -86,6 +91,7 @@ jobs:
8691
COMMIT_INFO_MESSAGE: ${{ github.event.pull_request.title }}
8792
COMMIT_INFO_SHA: ${{ github.event.pull_request.head.sha }}
8893
CYPRESS_MNEMONIC_PHRASE: ${{ inputs.mnemonic_phrase }}
94+
BASE_IMAGE_TAG_INPUT: ${{ inputs.base_image }}
8995
# Liquidation Secrets
9096
CYPRESS_GOV1_MNEMONIC: ${{ secrets.CYPRESS_GOV1_MNEMONIC }}
9197
CYPRESS_GOV1_ADDRESS: ${{ secrets.CYPRESS_GOV1_ADDRESS }}

Dockerfile

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
FROM ghcr.io/agoric/agoric-sdk:45
1+
ARG BASE_IMAGE_TAG
2+
3+
FROM ghcr.io/agoric/agoric-sdk:${BASE_IMAGE_TAG}
24

35
# Add the Agoric CLI to the PATH to access 'agops' from the shell.
46
ENV PATH="/usr/src/agoric-sdk/packages/agoric-cli/bin:${PATH}"

test/e2e/docker-compose-base.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ services:
66
- synpress
77
- daily-tests
88
container_name: synpress
9-
build: ../..
9+
build:
10+
context: ../..
11+
args:
12+
BASE_IMAGE_TAG: ${BASE_IMAGE_TAG_INPUT}
1013
environment:
1114
- DISPLAY=display:0.0
1215
- CYPRESS_PRIVATE_KEY_WITH_FUNDS=${CYPRESS_PRIVATE_KEY_WITH_FUNDS}

0 commit comments

Comments
 (0)