Skip to content

Commit 2ff57fc

Browse files
author
Greg Bowler
committed
wip: pass actual docker env file to docker
1 parent 64eacb1 commit 2ff57fc

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

composer-action.bash

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -148,24 +148,18 @@ do
148148
if printf '%s\n' "${dockerKeys[@]}" | grep -q -P "^${key}\$"; then
149149
echo "Skipping $line"
150150
else
151-
echo "Adding $line"
152151
echo "$line" >> DOCKER_ENV
153152
fi
154153
done <<<$(env)
155154

156-
echo "Output of DOCKER_ENV:"
157-
cat ./DOCKER_ENV
158-
159-
exit
160-
161155
docker run --rm \
162156
--volume "${github_action_path}/composer.phar":/usr/local/bin/composer \
163157
--volume ~/.gitconfig:/root/.gitconfig \
164158
--volume ~/.ssh:/root/.ssh \
165159
--volume "${GITHUB_WORKSPACE}":/app \
166160
--volume "/tmp/composer-cache":/tmp/composer-cache \
167161
--workdir /app \
168-
--env-file <( env| cut -f1 -d= ) \
162+
--env-file ./DOCKER_ENV \
169163
${docker_tag} ${command_string}
170164

171165
echo "::set-output name=full_command::${command_string}"

0 commit comments

Comments
 (0)