From 68107b899b0dd4ab7b4ab5682227fc12e10a8cab Mon Sep 17 00:00:00 2001 From: iFargle Date: Fri, 8 Dec 2023 20:04:16 +0900 Subject: [PATCH] test --- .forgejo/workflows/ssh-test.yml | 47 +++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .forgejo/workflows/ssh-test.yml diff --git a/.forgejo/workflows/ssh-test.yml b/.forgejo/workflows/ssh-test.yml new file mode 100644 index 00000000..31f07225 --- /dev/null +++ b/.forgejo/workflows/ssh-test.yml @@ -0,0 +1,47 @@ +name: ssh-test +run-name: ${{ github.actor }} - ssh-test +#on: +# push: +# branches: +# - main + +jobs: + ssh-test: + runs-on: docker + container: + image: alpine:edge + steps: + - name: "Setup: Runner" + run: | + apk update + apk add git nodejs nix --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing/ + - name: "Setup: SSH" + run: | + echo ${secrets.SSH_PUBLIC_KEY} > ~/.ssh/id_ed25519.pub + echo ${secrets.SSH_PRIVATE_KEY} > ~/.ssh/id_ed25519 + cat ~/.ssh/id_ed25519.pub + - uses: actions/checkout@v3 + - name: "Directory Structure" + run: | + ls ${{ github.workspace }}/* + - name: "Runner: Node Info" + run: | + id + uname -a + hostname + cat /etc/os-release + - name: "Nix Version" + run: | + nix --version + # - name: "Nix build" + # run: | + # echo "Running Nix Build" + # nix --extra-experimental-features "nix-command flakes" \ + # build /workspace/albert/nix#imageConfigurations.nixos-iso-desktop + # echo "Results:" + # ls -lah result/iso/ + + - if: always() + run: rm -rf /.cache + - if: always() + run: rm -rf ${{ github.worksspace }} \ No newline at end of file