From 89183a8a5d22b1aeca0ade3b76d16aa84067aa57 Mon Sep 17 00:00:00 2001 From: Adam Hamrick Date: Wed, 30 Oct 2024 11:04:01 -0400 Subject: [PATCH] Update Integration Tests Publish Image Action (#15022) * Update publish image action * Copy deployment dir * Fix path * More efficient * Docs --- .github/workflows/integration-tests-publish.yml | 4 ++-- integration-tests/test.Dockerfile | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/integration-tests-publish.yml b/.github/workflows/integration-tests-publish.yml index ff1ada16a13..df07cc1e231 100644 --- a/.github/workflows/integration-tests-publish.yml +++ b/.github/workflows/integration-tests-publish.yml @@ -18,7 +18,7 @@ jobs: id-token: write contents: read name: Publish Integration Test Image - runs-on: ubuntu22.04-16cores-64GB + runs-on: ubuntu22.04-8cores-32GB steps: - name: Checkout the repo uses: actions/checkout@v4.2.1 @@ -30,7 +30,7 @@ jobs: run: | echo "other_tags=${ECR_TAG}" >> $GITHUB_OUTPUT - name: Build Image - uses: smartcontractkit/.github/actions/ctf-build-test-image@a5e4f4c8fbb8e15ab2ad131552eca6ac83c4f4b3 # ctf-build-test-image@0.1.0 + uses: smartcontractkit/.github/actions/ctf-build-test-image@6781e048ecc1aadf7d605722c32e8068a5f829ce # ctf-build-test-image@0.2.0 with: other_tags: ${{ steps.tags.outputs.other_tags }} QA_AWS_ROLE_TO_ASSUME: ${{ secrets.QA_AWS_ROLE_TO_ASSUME }} diff --git a/integration-tests/test.Dockerfile b/integration-tests/test.Dockerfile index 6252cfdd426..17ea3875a1f 100644 --- a/integration-tests/test.Dockerfile +++ b/integration-tests/test.Dockerfile @@ -4,6 +4,8 @@ FROM ${BASE_IMAGE}:${IMAGE_VERSION} AS build-env WORKDIR /go/testdir RUN mkdir -p /go/testdir/integration-tests/load +# Deplyment module uses a local replace for latest code +COPY deployment/go.mod deployment/go.sum /go/testdir/deployment/ COPY go.mod go.sum ./ COPY integration-tests/go.mod integration-tests/go.sum ./integration-tests/ COPY integration-tests/load/go.mod integration-tests/load/go.sum ./integration-tests/load/