Skip to content

Commit

Permalink
Fix dfx path issues in GH actions (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
finiteops authored Apr 18, 2024
1 parent a322dcd commit 64820f6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ic-dev-base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ RUN curl -fsSL https://github.com/dfinity/motoko/releases/download/${motoko_vers

# dfx and import test identities
ENV DFXVM_INIT_YES=true
# ENV PATH="${PATH}:/root/.local/share/dfx/bin"

RUN DFX_VERSION=${dfx_version} sh -ci "$(curl -fsSL https://internetcomputer.org/install.sh)"

Expand All @@ -80,6 +79,11 @@ RUN . "$HOME/.local/share/dfx/env" \
&& dfx identity import --disable-encryption $DFX_DEV_IDENTITY ./identities/$DFX_DEV_IDENTITY/identity.pem \
&& dfx identity use $DFX_DEV_IDENTITY

# Fix DFX/Github init paths issues
RUN sed -i 's/\$HOME/\/workspace/g' /workspace/.bashrc \
&& sed -i 's/\$HOME/\/workspace/g' /workspace/.profile \
&& sed -i 's/\$HOME/\/workspace/g' /workspace/.local/share/dfx/env

# Clean stuff
RUN rm -rf $CARGO_HOME/registry \
&& chmod -R 0777 .cache \
Expand Down

0 comments on commit 64820f6

Please sign in to comment.