forked from neagix/wii-linux-ngx
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reformat it to "valid YAML" according to validator
- Loading branch information
1 parent
39ea43c
commit cd4c224
Showing
1 changed file
with
39 additions
and
41 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 |
---|---|---|
@@ -1,45 +1,43 @@ | ||
--- | ||
name: Deploy to Server | ||
|
||
on: | ||
push: | ||
branches: | ||
- v4.4 | ||
|
||
push: | ||
branches: | ||
- v4.4 | ||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Setup SSH Keys and known_hosts | ||
env: | ||
SSH_AUTH_SOCK: /tmp/ssh_agent.sock | ||
run: | | ||
mkdir -p ~/.ssh/ | ||
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_ed25519 | ||
# bit paranoid, but prevent cracking the pubkey | ||
echo "${{ secrets.SSH_PUBLIC_KEY }}" > ~/.ssh/id_ed25519.pub | ||
chmod 600 ~/.ssh/id_ed25519 | ||
chmod 644 ~/.ssh/id_ed25519.pub | ||
ssh-keyscan -H wii-linux.org > ~/.ssh/known_hosts | ||
- name: Git pull on server | ||
run: ssh root@wii-linux.org 'cd /srv/other/kernel/4.4; git pull' | ||
|
||
- name: Build the kernel | ||
run: ssh root@wii-linux.org 'docker run -v /srv/other/kernel/4.4:/code -t theotherone224/wii-linux-toolchain make -j$(nproc)' | ||
|
||
- name: Package up the modules | ||
run: ssh root@wii-linux.org 'docker run -v /srv/other/kernel/4.4:/code -t theotherone224/wii-linux-toolchain /bin/sh -c "apt update; apt install kmod -y; make modules_install; tar czf modules.tar.gz /lib/modules/4.4*"' | ||
|
||
- name: Deploy modules | ||
run: ssh root@wii-linux.org 'cd /wii-linux-tools/build-stack; ./deploy-modules_targz.sh' | ||
|
||
- name: Build & Deploy new rootfs with modules | ||
run: ssh root@wii-linux.org 'cd /wii-linux-tools/build-stack; ./build-rootfs.sh' | ||
|
||
- name: Build new SD Files archive | ||
run: ssh root@wii-linux.org 'cd /wii-linux-tools/build-stack; ./gen-sd-files.sh' | ||
|
||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup SSH Keys and known_hosts | ||
env: | ||
SSH_AUTH_SOCK: /tmp/ssh_agent.sock | ||
run: | | ||
mkdir -p ~/.ssh/ | ||
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_ed25519 | ||
# bit paranoid, but prevent cracking the pubkey | ||
echo "${{ secrets.SSH_PUBLIC_KEY }}" > ~/.ssh/id_ed25519.pub | ||
chmod 600 ~/.ssh/id_ed25519 | ||
chmod 644 ~/.ssh/id_ed25519.pub | ||
ssh-keyscan -H wii-linux.org > ~/.ssh/known_hosts | ||
- name: Git pull on server | ||
run: ssh root@wii-linux.org 'cd /srv/other/kernel/4.4; git pull' | ||
- name: Build the kernel | ||
run: ssh root@wii-linux.org 'docker run -v /srv/other/kernel/4.4:/code -t | ||
theotherone224/wii-linux-toolchain make -j$(nproc)' | ||
- name: Package up the modules | ||
run: ssh root@wii-linux.org 'docker run -v /srv/other/kernel/4.4:/code -t | ||
theotherone224/wii-linux-toolchain /bin/sh -c "apt update; apt install | ||
kmod -y; make modules_install; tar czf modules.tar.gz | ||
/lib/modules/4.4*"' | ||
- name: Deploy modules | ||
run: ssh root@wii-linux.org 'cd /wii-linux-tools/build-stack; | ||
./deploy-modules_targz.sh' | ||
- name: Build & Deploy new rootfs with modules | ||
run: ssh root@wii-linux.org 'cd /wii-linux-tools/build-stack; | ||
./build-rootfs.sh' | ||
- name: Build new SD Files archive | ||
run: ssh root@wii-linux.org 'cd /wii-linux-tools/build-stack; | ||
./gen-sd-files.sh' | ||
|