-
Notifications
You must be signed in to change notification settings - Fork 4
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
6e175a0
commit 764006c
Showing
2 changed files
with
41 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- ci | ||
schedule: | ||
- cron: '0 0 * * 3' # Every Wednesday at 00:00 UTC | ||
|
||
jobs: | ||
build: | ||
runs-on: debian:latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/[email protected] | ||
|
||
- name: Update and install curl | ||
run: | | ||
apt-get update | ||
apt-get install -y curl | ||
- name: Entrypoint for setup | ||
run: | | ||
curl -sSL curl -sSL https://raw.githubusercontent.com/EricDriussi/host-your-own/ci/init.sh | bash |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env bash | ||
set -o nounset | ||
set -o errexit | ||
set -o pipefail | ||
|
||
rm -rf ./host-your-own && git clone [email protected]:ericdriussi/host-your-own.git ./host-your-own | ||
|
||
if [ "$EUID" -eq 0 ]; then # is root user | ||
apt install -y pipx | ||
else | ||
sudo apt install -y pipx | ||
fi | ||
|
||
pipx install --include-deps ansible | ||
|
||
cd ./host-your-own | ||
~/.local/bin/ansible-playbook run.yml |