From 18a35286ae2c55884ff3fc78c74ab7469783504e Mon Sep 17 00:00:00 2001 From: Erich L Foster Date: Sat, 18 May 2024 12:05:14 +0200 Subject: [PATCH] Try using docker image directly --- .github/workflows/install-ci.yml | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/.github/workflows/install-ci.yml b/.github/workflows/install-ci.yml index 946d187..400a9bc 100644 --- a/.github/workflows/install-ci.yml +++ b/.github/workflows/install-ci.yml @@ -10,18 +10,14 @@ jobs: install: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: webfactory/ssh-agent@v0.9.0 + - name: Checkout repository + uses: actions/checkout@v4 + - name: Set up ssh + uses: webfactory/ssh-agent@v0.9.0 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"