Switch to manjaro from ubuntu #106
Workflow file for this run
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
name: "test-install" | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
install: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup ssh | |
uses: webfactory/[email protected] | |
with: | |
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | |
- name: Install | |
run: | | |
docker run --rm \ | |
-v $SSH_AUTH_SOCK:/ssh-agent \ | |
-v ~/.ssh/known_hosts:/root/.ssh/known_hosts \ | |
-e SSH_AUTH_SOCK=/ssh-agent \ | |
-v ${{ github.workspace }}:/workspace \ | |
manjarolinux/base:latest \ | |
/bin/bash -c " | |
echo -e "\033[0;32mInstall openssh and git\033[0m" | |
pacman -Sy --noconfirm openssh git && \ | |
echo -e "\033[0;32mAdd ssh keys\033[0m" | |
ssh-add -l \ | |
echo -e "\033[0;32mAdd /workspace to trusted repos\033[0m" | |
git config --global --add safe.directory /workspace && \ | |
echo -e "\033[0;32mStart install\033[0m" | |
cd /workspace && \ | |
./install.sh | |
" |