Skip to content

Commit

Permalink
fix run container env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
abrl91 committed Apr 3, 2024
1 parent b570bd4 commit eaeca0c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/dsg-e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,16 @@ jobs:

- name: Run container
run: |
docker run -v ${pwd}:/data --env-file dsg.env \
-e BUILD_SPEC_PATH=/data/test-cases/${{ matrix.test-cases }}/input.json \
-e BUILD_OUTPUT_PATH=/data/test-cases/${{ matrix.test-cases }}/generated \
docker run -v $(pwd):/data --env-file dsg.env \
-e BUILD_SPEC_PATH=/data/test-cases/${MATRIX_TEST_CASES}/input.json \
-e BUILD_OUTPUT_PATH=/data/test-cases/${MATRIX_TEST_CASES}/generated \
-w /workspace/packages/data-service-generator \
${{env.AWS_ACCOUNT_OPS_ID}}.dkr.ecr.us-east-1.amazonaws.com/data-service-generator:${{ env.DSG_IMAGE_TAG }} \
${AWS_ACCOUNT_OPS_ID}.dkr.ecr.us-east-1.amazonaws.com/data-service-generator:${DSG_IMAGE_TAG} \
sh -c "node ./src/main.js"
env:
AWS_ACCOUNT_OPS_ID: ${{ vars.AWS_ACCOUNT_OPS_ID }}
DSG_IMAGE_TAG: ${{ github.event.inputs.ecr_tag }}
MATRIX_TEST_CASES: ${{ matrix.test-cases }}

- name: Check if directory exists
run: |
Expand Down

0 comments on commit eaeca0c

Please sign in to comment.