Skip to content

Commit

Permalink
Try using docker image directly
Browse files Browse the repository at this point in the history
  • Loading branch information
erichlf committed May 18, 2024
1 parent f84122f commit 18a3528
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/install-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,14 @@ jobs:
install:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: webfactory/[email protected]
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up ssh
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: install
uses: addnab/docker-run-action@v3
uses: docker://archlinux:latest
with:
image: archlinux:latest
options: |
-v ${{ github.workspace }}:/root/dotfiles -v ${{ SSH_AUTH_SOCK }}:/ssh-agent -v ~/.ssh/known_hosts:/root/.ssh/known_hosts
run: |
yes | pacman -S git && \
git config --global --add safe.directory $HOME/dotfiles && \
cd $HOME/dotfiles && \
./install.sh
entrypoint: /bin/bash
args: -c "pacman -Sy --noconfirm sudo openssh git && cd && mkdir -p .ssh && echo '$SSH_PRIVATE_KEY' > .ssh/id_rsa && chmod 600 .ssh/id_rsa && ssh-keyscan github.com >> .ssh/known_hosts && eval $(ssh-agent) && ssh-add .ssh/id_rsa && git config --global --add safe.directory $GITHUB_WORKSPACE && cd $GITHUB_WORKSPACE && ./install.sh"

0 comments on commit 18a3528

Please sign in to comment.