Skip to content

Commit

Permalink
fix: use runtime variables instead of build time variables to set
Browse files Browse the repository at this point in the history
directories
  • Loading branch information
omar-besbes committed Feb 16, 2024
1 parent d186266 commit b92b422
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ jobs:
RAW_CONTENT_URL:
"https://raw.githubusercontent.com\
/${{ github.repository }}\
/main"
#/${{ github.head_ref || github.ref_name }}"
/${{ github.head_ref || github.ref_name }}"

steps:
- name: Checkout code
Expand Down
13 changes: 5 additions & 8 deletions test/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,11 @@ services:
command: >
/bin/bash -c "
cp -r $$DOTFILES_MOUNT_POINT $$HOME
&& ls $$HOME -lha
&& ls /root -lha
&& chown -R $(whoami):$(whoami) $(pwd)
&& ./bootstrap.sh
&& . ~/.bashrc
&& ./test/test.sh
&& chown -R $(whoami):$(whoami) $$HOME$$DOTFILES_MOUNT_POINT
&& $$HOME$$DOTFILES_MOUNT_POINT/bootstrap.sh
&& . $$HOME/.bashrc
&& $$HOME$$DOTFILES_MOUNT_POINT/test/test.sh
"
working_dir: ${HOME}/.dotfiles
environment:
DOTFILES_MOUNT_POINT: ${DOTFILES_MOUNT_POINT:-/.dotfiles}
volumes:
Expand All @@ -33,7 +30,7 @@ services:
command: >
/bin/bash -c "
source <(curl -# $$RAW_CONTENT_URL/bootstrap.sh)
&& . ~/.bashrc
&& . $$HOME/.bashrc
&& ./test/test.sh
"
environment:
Expand Down

0 comments on commit b92b422

Please sign in to comment.