Skip to content

Commit

Permalink
Simpliy test script
Browse files Browse the repository at this point in the history
  • Loading branch information
primeapple committed Dec 12, 2023
1 parent b429640 commit 5749dac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM archlinux:base

RUN pacman -Syu --noconfirm \
&& pacman -S --noconfirm fish sudo which yadm
&& pacman -S --noconfirm fish yadm

RUN useradd --create-home --groups wheel --password password --shell /bin/bash primeapple

Expand All @@ -10,4 +10,6 @@ COPY yadm-test.sh yadm-test.sh
RUN chmod +x yadm-test.sh && chown primeapple:primeapple yadm-test.sh

USER primeapple
CMD ["echo", "password", "|", "sudo", "-S", "./yadm-test.sh"]
# this is to run the script as root
# CMD ["echo", "password", "|", "sudo", "-S", "./yadm-test.sh"]
CMD ["./yadm-test.sh"]
1 change: 1 addition & 0 deletions .github/yadm-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,4 @@ if ! fish -c "fisher --version" >/dev/null 2>&1; then
echo "Error: fisher is not installed."
exit 1
fi
echo '## DONE'

0 comments on commit 5749dac

Please sign in to comment.