Skip to content

Commit f902d5b

Browse files
committed
chore: syncing local and remote build
1 parent 36dea96 commit f902d5b

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

.github/workflows/dockerized-test.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,19 @@ jobs:
2323
with:
2424
python-version: '3.11'
2525

26+
- name: Load environment variables
27+
run: |
28+
if [ -f .env ]; then
29+
export $(cat .env | grep -v '^#' | xargs)
30+
echo "HANDLERS_TO_BUILD=${HANDLERS_TO_BUILD}" >> $GITHUB_ENV
31+
echo "OUTPUT_DIR=${OUTPUT_DIR}" >> $GITHUB_ENV
32+
fi
33+
2634
- name: Build the image
27-
run: docker build . -t local/test -f Dockerfile.rie
35+
run: |
36+
docker build . -t local/test -f Dockerfile.rie \
37+
--build-arg HANDLERS_TO_BUILD="${HANDLERS_TO_BUILD}" \
38+
--build-arg OUTPUT_DIR="${OUTPUT_DIR}"
2839
2940
- name: Run tests
3041
uses: aws/containerized-test-runner-for-aws-lambda@main

0 commit comments

Comments
 (0)