Skip to content

Commit

Permalink
try build with docker ctx
Browse files Browse the repository at this point in the history
  • Loading branch information
skudasov committed Sep 2, 2024
1 parent c185372 commit 567fecc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/k8s-e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ jobs:
build_tests:
runs-on: ubuntu-latest
environment: integration
defaults:
run:
working-directory: lib
permissions:
id-token: write
contents: read
Expand All @@ -33,7 +30,7 @@ jobs:
uses: smartcontractkit/chainlink-github-actions/docker/build-push@e29366cdecfe6befff9ab8c3cfe4825218505d58 # v2.3.16
with:
tags: ${{ env.BASE_IMAGE_NAME }}
file: k8s/Dockerfile.base
file: lib/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,8 +41,9 @@ jobs:
### test-base-image image tag for this test run :ship: => \`ci.${{ github.sha }}\`
EOT
- name: Build Test Runner
uses: smartcontractkit/chainlink-github-actions/docker/build-push@e29366cdecfe6befff9ab8c3cfe4825218505d58 # v2.3.16
uses: smartcontractkit/chainlink-github-actions/docker/build-push@16bd16fe8e51d04999f9f3e14fd55b563e7718c7 # v2.3.16
with:
context: ./lib
tags: ${{ env.ENV_JOB_IMAGE }}
file: k8s/Dockerfile
build-args: |
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 ./k8s/scripts/buildTests
ENTRYPOINT ["./k8s/scripts/entrypoint"]
RUN ./lib/k8s/scripts/buildTests
ENTRYPOINT ["./lib/k8s/scripts/entrypoint"]

0 comments on commit 567fecc

Please sign in to comment.