Skip to content

Switch to manjaro from ubuntu #114

Switch to manjaro from ubuntu

Switch to manjaro from ubuntu #114

Workflow file for this run

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: |
# Update known hosts within the container (recommended)
echo -e "${GREEN}Update known hosts${NC}"
echo "$SSH_PRIVATE_KEY"
ssh-keyscan -H github.com >> ~/.ssh/known_hosts
docker run --rm \
-v ${{ github.workspace }}:/workspace \
-e SSH_AUTH_SOCK=/ssh-agent \
manjarolinux/base:latest \
/bin/bash -c "
GREEN='\033[0;32'; NC='\033[om'
echo -e '${GREEN}Install openssh and git${NC}'
pacman -Sy --noconfirm openssh git && \
echo -e '${GREEN}Add /workspace to trusted repos${NC}'
git config --global --add safe.directory /workspace && \
echo -e '${GREEN}Start install${NC}'
cd /workspace && \
./install.sh
"