mirror of
https://github.com/TecharoHQ/anubis.git
synced 2026-04-18 06:15:00 +00:00
ci: better comment aile and t-elos' roles
Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
7
.github/workflows/ssh-ci.yml
vendored
7
.github/workflows/ssh-ci.yml
vendored
@@ -3,8 +3,8 @@ name: SSH CI
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: ["main"]
|
branches: ["main"]
|
||||||
# pull_request:
|
pull_request:
|
||||||
# branches: ["main"]
|
branches: ["main"]
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
@@ -18,7 +18,8 @@ jobs:
|
|||||||
host:
|
host:
|
||||||
- ubuntu@riscv64.techaro.lol
|
- ubuntu@riscv64.techaro.lol
|
||||||
- ci@ppc64le.techaro.lol
|
- ci@ppc64le.techaro.lol
|
||||||
- rocky@100.80.50.165 # aile
|
- rocky@192.168.2.52 # aile, aarch64-4k
|
||||||
|
- ci@192.168.2.28 # t-elos, aarch64-16k
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ set -euo pipefail
|
|||||||
[ ! -z "${DEBUG:-}" ] && set -x
|
[ ! -z "${DEBUG:-}" ] && set -x
|
||||||
|
|
||||||
if [ "$#" -ne 1 ]; then
|
if [ "$#" -ne 1 ]; then
|
||||||
echo "Usage: rigging.sh <user@host>"
|
echo "Usage: rigging.sh <user@host>"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
CIRunnerImage="ghcr.io/techarohq/anubis/ci-runner:latest"
|
CIRunnerImage="ghcr.io/techarohq/anubis/ci-runner:latest"
|
||||||
@@ -16,18 +16,18 @@ ssh "${Target}" uname -av
|
|||||||
ssh "${Target}" mkdir -p "${RunFolder}"
|
ssh "${Target}" mkdir -p "${RunFolder}"
|
||||||
git archive HEAD | ssh "${Target}" tar xC "${RunFolder}"
|
git archive HEAD | ssh "${Target}" tar xC "${RunFolder}"
|
||||||
|
|
||||||
ssh "${Target}" << EOF
|
ssh "${Target}" <<EOF
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
set -x
|
set -x
|
||||||
mkdir -p "anubis/cache/{go,go-build,node}"
|
mkdir -p anubis/cache/{go,go-build,node}
|
||||||
podman pull ${CIRunnerImage}
|
podman pull ${CIRunnerImage}
|
||||||
podman run --rm -it \
|
podman run --rm -it \
|
||||||
-v "\$HOME/${RunFolder}:/app/anubis" \
|
-v "\$HOME/${RunFolder}:/app/anubis:z" \
|
||||||
-v "\$HOME/anubis/cache/go:/root/go" \
|
-v "\$HOME/anubis/cache/go:/root/go:z" \
|
||||||
-v "\$HOME/anubis/cache/go-build:/root/.cache/go-build" \
|
-v "\$HOME/anubis/cache/go-build:/root/.cache/go-build:z" \
|
||||||
-v "\$HOME/anubis/cache/node:/root/.npm" \
|
-v "\$HOME/anubis/cache/node:/root/.npm:z" \
|
||||||
-w /app/anubis \
|
-w /app/anubis \
|
||||||
${CIRunnerImage} \
|
${CIRunnerImage} \
|
||||||
sh /app/anubis/test/ssh-ci/in-container.sh
|
sh /app/anubis/test/ssh-ci/in-container.sh
|
||||||
ssh "${Target}" rm -rf "${RunFolder}"
|
ssh "${Target}" rm -rf "${RunFolder}"
|
||||||
EOF
|
EOF
|
||||||
|
|||||||
Reference in New Issue
Block a user