mirror of
https://github.com/billz/raspap-webgui.git
synced 2025-03-01 10:31:47 +00:00
Compare commits
19 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
224748a301 | ||
|
d0eaa2cac8 | ||
|
2c311af932 | ||
|
684b2a75d9 | ||
|
fcaafd55b5 | ||
|
35d588b29e | ||
|
dd1b9e70bd | ||
|
371bf4abef | ||
|
162acb467b | ||
|
7c46f9c8f8 | ||
|
44d8712cc3 | ||
|
062939a0f2 | ||
|
12e70bc330 | ||
|
a4f1a89cef | ||
|
71990cec80 | ||
|
a04fe39050 | ||
|
9ac67e0ba4 | ||
|
e8c9fd1690 | ||
|
6eab0542ff |
27
.github/workflows/release.yml
vendored
27
.github/workflows/release.yml
vendored
@ -29,8 +29,25 @@ jobs:
|
|||||||
{
|
{
|
||||||
cat > stage-raspap/package-raspap/00-run-chroot.sh <<-EOF
|
cat > stage-raspap/package-raspap/00-run-chroot.sh <<-EOF
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
apt-get update -y && apt-get install -y curl dhcpcd5 iptables procps
|
apt-get update -y && apt-get install -y curl dhcpcd5 procps
|
||||||
|
|
||||||
curl -sL https://install.raspap.com | bash -s -- --yes --openvpn 1 --restapi 1 --adblock 1 --wireguard 1 --tcp-bbr 1 --check 0
|
curl -sL https://install.raspap.com | bash -s -- --yes --openvpn 1 --restapi 1 --adblock 1 --wireguard 1 --tcp-bbr 1 --check 0
|
||||||
|
|
||||||
|
# Set Wi-Fi country to prevent RF kill
|
||||||
|
raspi-config nonint do_wifi_country "US"
|
||||||
|
|
||||||
|
# Fetch RaspAP version and set MOTD
|
||||||
|
RASPAP_VERSION=\$(curl -sL https://install.raspap.com | bash -s -- --version)
|
||||||
|
echo "\$RASPAP_VERSION" | tee /etc/motd
|
||||||
|
EOF
|
||||||
|
} &&
|
||||||
|
chmod +x stage-raspap/package-raspap/00-run-chroot.sh &&
|
||||||
|
{
|
||||||
|
cat > stage-raspap/prerun.sh <<-EOF
|
||||||
|
#!/bin/bash -e
|
||||||
|
if [ ! -d "\${ROOTFS_DIR}" ]; then
|
||||||
|
copy_previous
|
||||||
|
fi
|
||||||
EOF
|
EOF
|
||||||
} &&
|
} &&
|
||||||
chmod +x stage-raspap/package-raspap/00-run-chroot.sh &&
|
chmod +x stage-raspap/package-raspap/00-run-chroot.sh &&
|
||||||
@ -48,18 +65,18 @@ jobs:
|
|||||||
id: build
|
id: build
|
||||||
uses: usimd/pi-gen-action@v1
|
uses: usimd/pi-gen-action@v1
|
||||||
with:
|
with:
|
||||||
image-name: "raspap-${{ github.ref_name }}-${{ matrix.arch }}"
|
image-name: "raspap-bookworm-${{ matrix.arch == '32-bit' && 'armhf' || 'arm64' }}-lite-${{ github.event.inputs.tag || github.ref_name }}"
|
||||||
enable-ssh: 1
|
enable-ssh: 1
|
||||||
stage-list: stage0 stage1 stage2 ./stage-raspap
|
stage-list: stage0 stage1 stage2 ./stage-raspap
|
||||||
verbose-output: true
|
verbose-output: true
|
||||||
pi-gen-version: ${{ matrix.pi_gen_version }}
|
pi-gen-version: ${{ matrix.pi_gen_version }}
|
||||||
pi-gen-repository: RaspAP/pi-gen
|
pi-gen-repository: billz/pi-gen
|
||||||
|
|
||||||
- name: Upload Artifact
|
- name: Upload Artifact
|
||||||
uses: svenstaro/upload-release-action@v2
|
uses: svenstaro/upload-release-action@v2
|
||||||
with:
|
with:
|
||||||
asset_name: raspap-image-${{ github.ref_name }}-${{ matrix.arch }}.zip
|
asset_name: "raspap-bookworm-${{ matrix.arch == '32-bit' && 'armhf' || 'arm64' }}-lite-${{ github.event.inputs.tag || github.ref_name }}.img.zip"
|
||||||
file: ${{ steps.build.outputs.image-path }}
|
file: ${{ steps.build.outputs.image-path }}
|
||||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
tag: ${{ github.ref }}
|
tag: ${{ github.event.inputs.tag || github.ref }}
|
||||||
overwrite: true
|
overwrite: true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user