From c18537215aac1942df5708ffa8e4240ca30c7352 Mon Sep 17 00:00:00 2001 From: skudasov Date: Tue, 3 Sep 2024 00:35:37 +0200 Subject: [PATCH] change working directory in CI for the build step --- .github/workflows/k8s-e2e.yaml | 7 +++++-- lib/k8s/Dockerfile | 4 ++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/k8s-e2e.yaml b/.github/workflows/k8s-e2e.yaml index 965e3b49a..aff4ea853 100644 --- a/.github/workflows/k8s-e2e.yaml +++ b/.github/workflows/k8s-e2e.yaml @@ -21,6 +21,9 @@ jobs: build_tests: runs-on: ubuntu-latest environment: integration + defaults: + run: + working-directory: lib permissions: id-token: write contents: read @@ -30,7 +33,7 @@ jobs: uses: smartcontractkit/chainlink-github-actions/docker/build-push@e29366cdecfe6befff9ab8c3cfe4825218505d58 # v2.3.16 with: tags: ${{ env.BASE_IMAGE_NAME }} - file: lib/k8s/Dockerfile.base + file: k8s/Dockerfile.base AWS_REGION: ${{ secrets.QA_AWS_REGION }} AWS_ROLE_TO_ASSUME: ${{ secrets.QA_AWS_ROLE_TO_ASSUME }} - name: Base Image Built @@ -44,7 +47,7 @@ jobs: uses: smartcontractkit/chainlink-github-actions/docker/build-push@e29366cdecfe6befff9ab8c3cfe4825218505d58 # v2.3.16 with: tags: ${{ env.ENV_JOB_IMAGE }} - file: lib/k8s/Dockerfile + file: k8s/Dockerfile build-args: | BASE_IMAGE=${{ secrets.QA_AWS_ACCOUNT_NUMBER }}.dkr.ecr.${{ secrets.QA_AWS_REGION }}.amazonaws.com/test-base-image IMAGE_VERSION=ci.${{ github.sha }} diff --git a/lib/k8s/Dockerfile b/lib/k8s/Dockerfile index 3bb38d17b..135751380 100644 --- a/lib/k8s/Dockerfile +++ b/lib/k8s/Dockerfile @@ -3,5 +3,5 @@ ARG IMAGE_VERSION=latest FROM ${BASE_IMAGE}:${IMAGE_VERSION} COPY . testdir/ WORKDIR /go/testdir -RUN ./lib/k8s/scripts/buildTests -ENTRYPOINT ["./lib/k8s/scripts/entrypoint"] +RUN ./k8s/scripts/buildTests +ENTRYPOINT ["./k8s/scripts/entrypoint"]