-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cd64e37
commit a2e6fa5
Showing
4 changed files
with
19 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
FROM archlinux:base | ||
|
||
RUN pacman -Syu --noconfirm \ | ||
&& pacman -S --noconfirm fish yadm | ||
&& pacman -S --noconfirm fish sudo which yadm | ||
|
||
RUN useradd --create-home --shell /bin/bash primeapple | ||
RUN useradd --create-home --groups wheel --password password --shell /bin/bash primeapple | ||
|
||
WORKDIR /home/primeapple | ||
COPY yadm-test.sh yadm-test.sh | ||
RUN chmod +x yadm-test.sh && chown primeapple:primeapple yadm-test.sh | ||
|
||
USER primeapple | ||
CMD ./yadm-test.sh | ||
CMD ["echo", "password", "|", "sudo", "-S", "./yadm-test.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,13 @@ | ||
name: Yadm Test | ||
|
||
on: | ||
push: | ||
|
||
jobs: | ||
yadm-test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Build Docker image | ||
run: docker build -f .github/Dockerfile -t arch-yadm .github/ | ||
|
||
- name: Run yadm-test script | ||
run: docker run --rm arch-yadm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters