Skip to content

Commit 6a33882

Browse files
committed
Refactor .github/Dockerfile to fix dependency issue preventing E2E tests from running
1 parent 52e5830 commit 6a33882

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/Dockerfile

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@ ENV LANG=en_US.UTF-8 \
1313
COPY --chmod=755 <<'EOF' /usr/local/bin/pkgx_env
1414
#!/bin/sh
1515
set -eu
16-
PKGX_DEPS=$(pkgx yq eval '.dependencies | to_entries | map("+" + .key + "@" + (.value | sub("^="; ""))) | join(" ")' .pkgx.yaml)
16+
17+
CONFIG_PATH="/usr/local/bin/.pkgx.yaml"
18+
PKGX_DEPS=$(pkgx yq eval '.dependencies | to_entries | map("+" + .key + "@" + (.value | sub("^="; ""))) | join(" ")' "$CONFIG_PATH")
1719
exec pkgx $PKGX_DEPS "$@"
1820
EOF
21+
COPY .pkgx.yaml /usr/local/bin/
1922

2023
FROM base AS build
2124
WORKDIR /action/workspace
2225

23-
# System dependencies
24-
COPY .pkgx.yaml .
25-
2626
# Mix dependencies
2727
COPY mix.exs mix.lock ./
2828
RUN pkgx_env mix deps.get && pkgx_env mix deps.compile
@@ -35,8 +35,6 @@ RUN pkgx_env mix escript.build
3535
FROM base AS release
3636
WORKDIR /usr/local/bin
3737

38-
COPY --from=build /root/.pkgx /root/.pkgx
39-
COPY --from=build /action/workspace/.pkgx.yaml /usr/local/bin/.pkgx.yaml
4038
COPY --from=build /action/workspace/elixir_script /usr/local/bin/elixir_script
4139

4240
ENTRYPOINT ["pkgx_env", "/usr/local/bin/elixir_script"]

0 commit comments

Comments
 (0)