Skip to content

Commit

Permalink
ci: use ecr image names in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
strophy committed Nov 3, 2023
1 parent 436215a commit 39b66f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion .github/workflows/tests-build-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ jobs:
run: |
aws ecr get-login-password --region ${{ vars.AWS_REGION }} | docker login --username AWS --password-stdin ${{ vars.AWS_ACCOUNT_ID }}.dkr.ecr.${{ vars.AWS_REGION }}.amazonaws.com
GIT_SHA=$(git rev-parse --short HEAD)
echo "GIT_SHA=$GIT_SHA" >> $GITHUB_ENV
images=("dapi:local" "drive:local" "dashmate_helper:local")
for image in "${images[@]}"; do
new_image_tag="${{ vars.AWS_ACCOUNT_ID }}.dkr.ecr.${{ vars.AWS_REGION }}.amazonaws.com/${image%:local}:$GIT_SHA"
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/tests-test-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,10 @@ jobs:
# collect drive logs for bench suite
yarn dashmate config set --config=local platform.drive.abci.logs.stdout.level “trace”
# set docker image names
yarn dashmate config set --config=local platform.drive.abci.docker.image drive:${{ github.sha }}
yarn dashmate config set --config=local platform.dapi.api.docker.image dapi:${{ github.sha }}
yarn dashmate config set --config=local dashmate.helper.docker.image dashmate_helper:${{ github.sha }}
GIT_SHA=$(git rev-parse --short HEAD)
yarn dashmate config set --config=local platform.drive.abci.docker.image ${{ vars.AWS_ACCOUNT_ID }}.dkr.ecr.${{ vars.AWS_REGION }}.amazonaws.com/drive:$GIT_SHA
yarn dashmate config set --config=local platform.dapi.api.docker.image dapi:${{ vars.AWS_ACCOUNT_ID }}.dkr.ecr.${{ vars.AWS_REGION }}.amazonaws.com/dapi:$GIT_SHA
yarn dashmate config set --config=local dashmate.helper.docker.image dashmate_helper:${{ vars.AWS_ACCOUNT_ID }}.dkr.ecr.${{ vars.AWS_REGION }}.amazonaws.com/dashmate_helper:$GIT_SHA
source ./scripts/setup_local_network.sh
source ./scripts/configure_test_suite.sh
Expand Down

0 comments on commit 39b66f2

Please sign in to comment.