Skip to content

Commit 2403e61

Browse files
authored
LINBEE-311 | feat: add all envs to docker (#39)
1 parent 19c3c72 commit 2403e61

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

action.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,16 @@ runs:
8484
if: always()
8585
run: |
8686
SECONDS=0
87+
env_file=env.user
88+
touch $env_file
89+
for var in $(env | cut -d "=" -f 1); do
90+
value="${!var}"
91+
echo "$var=$value" >> "$env_file"
92+
done
8793
docker pull gitstream/rules-engine:latest
8894
echo "docker-pull-duration=$SECONDS" >> $GITHUB_OUTPUT
8995
SECONDS=0
90-
docker run -v $(pwd)/gitstream:/code -e USE_CACHE=${{ steps.cache-gitstream-results.outputs.cache-hit }} -e HEAD_REF=${{ github.event.inputs.head_ref }} -e BASE_REF=${{ github.event.inputs.base_ref }} -e CLIENT_PAYLOAD=${{ github.event.inputs.client_payload }} -e RULES_RESOLVER_URL=${{ github.event.inputs.resolver_url }} -e RULES_RESOLVER_TOKEN=${{ github.event.inputs.resolver_token }} -e DEBUG_MODE=${{ github.event.inputs.debug_mode }} gitstream/rules-engine
96+
docker run --env-file $env_file -v $(pwd)/gitstream:/code -e USE_CACHE=${{ steps.cache-gitstream-results.outputs.cache-hit }} -e HEAD_REF=${{ github.event.inputs.head_ref }} -e BASE_REF=${{ github.event.inputs.base_ref }} -e CLIENT_PAYLOAD=${{ github.event.inputs.client_payload }} -e RULES_RESOLVER_URL=${{ github.event.inputs.resolver_url }} -e RULES_RESOLVER_TOKEN=${{ github.event.inputs.resolver_token }} -e DEBUG_MODE=${{ github.event.inputs.debug_mode }} gitstream/rules-engine
9197
echo "docker-run-duration=$SECONDS" >> $GITHUB_OUTPUT
9298
echo "action-run-duration=$(($EPOCHSECONDS - ${{ steps.start.outputs.timestamp }}))" >> $GITHUB_OUTPUT
9399
shell: bash

0 commit comments

Comments
 (0)