Skip to content

Commit

Permalink
change working directory in CI for the build step
Browse files Browse the repository at this point in the history
  • Loading branch information
skudasov committed Sep 2, 2024
1 parent 905b665 commit c185372
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/k8s-e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ jobs:
build_tests:
runs-on: ubuntu-latest
environment: integration
defaults:
run:
working-directory: lib
permissions:
id-token: write
contents: read
Expand All @@ -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
Expand All @@ -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 }}
Expand Down
4 changes: 2 additions & 2 deletions lib/k8s/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit c185372

Please sign in to comment.