Remove lunar from mantic

This commit is contained in:
ferrreo 2023-09-28 17:51:40 +01:00
parent 6bc5319cf4
commit 11cd7de8fc
18 changed files with 1 additions and 490 deletions

View File

@ -1,44 +0,0 @@
name: Wipe AMDGPU Pool Clean (Danger)
on:
workflow_dispatch:
jobs:
build:
runs-on: self-hosted
container:
image: ghcr.io/pikaos-linux/pika-package-container:latest
volumes:
- /proc:/proc
options: --privileged -it
steps:
- uses: actions/checkout@v3
- name: Import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v5
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.PASSPHRASE }}
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_KEY }}
name: id_rsa
known_hosts: ${{ secrets.KNOWN_HOSTS }}
if_key_exists: replace
- name: Sync Repository
run: chmod +x ./amdgpu-wipe-clean.sh && ./amdgpu-wipe-clean.sh
- name: Purge cache
uses: strrife/cloudflare-chunked-purge-action@master
env:
# Zone is required by both authentication methods
CLOUDFLARE_ZONE: ${{ secrets.CLOUDFLARE_ZONE }}
CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }}
PURGE_URLS: ${{ vars.PURGE_URLS }}

View File

@ -1,44 +0,0 @@
name: Wipe External Pool Clean (Danger)
on:
workflow_dispatch:
jobs:
build:
runs-on: self-hosted
container:
image: ghcr.io/pikaos-linux/pika-package-container:latest
volumes:
- /proc:/proc
options: --privileged -it
steps:
- uses: actions/checkout@v3
- name: Import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v5
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.PASSPHRASE }}
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_KEY }}
name: id_rsa
known_hosts: ${{ secrets.KNOWN_HOSTS }}
if_key_exists: replace
- name: Sync Repository
run: chmod +x ./external-wipe-clean.sh && ./external-wipe-clean.sh
- name: Purge cache
uses: strrife/cloudflare-chunked-purge-action@master
env:
# Zone is required by both authentication methods
CLOUDFLARE_ZONE: ${{ secrets.CLOUDFLARE_ZONE }}
CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }}
PURGE_URLS: ${{ vars.PURGE_URLS }}

View File

@ -1,44 +0,0 @@
name: Wipe ROCm Pool Clean (Danger)
on:
workflow_dispatch:
jobs:
build:
runs-on: self-hosted
container:
image: ghcr.io/pikaos-linux/pika-package-container:latest
volumes:
- /proc:/proc
options: --privileged -it
steps:
- uses: actions/checkout@v3
- name: Import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v5
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.PASSPHRASE }}
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_KEY }}
name: id_rsa
known_hosts: ${{ secrets.KNOWN_HOSTS }}
if_key_exists: replace
- name: Sync Repository
run: chmod +x ./rocm-wipe-clean.sh && ./rocm-wipe-clean.sh
- name: Purge cache
uses: strrife/cloudflare-chunked-purge-action@master
env:
# Zone is required by both authentication methods
CLOUDFLARE_ZONE: ${{ secrets.CLOUDFLARE_ZONE }}
CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }}
PURGE_URLS: ${{ vars.PURGE_URLS }}

View File

@ -1,44 +0,0 @@
name: Wipe Ubuntu Pool Clean (Danger)
on:
workflow_dispatch:
jobs:
build:
runs-on: self-hosted
container:
image: ghcr.io/pikaos-linux/pika-package-container:latest
volumes:
- /proc:/proc
options: --privileged -it
steps:
- uses: actions/checkout@v3
- name: Import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v5
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.PASSPHRASE }}
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_KEY }}
name: id_rsa
known_hosts: ${{ secrets.KNOWN_HOSTS }}
if_key_exists: replace
- name: Sync Repository
run: chmod +x ./ubuntu-wipe-clean.sh && ./ubuntu-wipe-clean.sh
- name: Purge cache
uses: strrife/cloudflare-chunked-purge-action@master
env:
# Zone is required by both authentication methods
CLOUDFLARE_ZONE: ${{ secrets.CLOUDFLARE_ZONE }}
CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }}
PURGE_URLS: ${{ vars.PURGE_URLS }}
PURGE_URLS: ${{ vars.PURGE_URLS }}

View File

@ -1,13 +0,0 @@
#! /bin/bash
set -e
### In the Case of a major mishap we wipe the amdgpu pool clean and re run all repos
# Pull down existing ppa repo db files etc
mkdir -p ./output/repo
rsync -azP --exclude '*.deb' ferreo@direct.pika-os.com:/srv/www/pikappa/ ./output/repo
# Remove our All package from the pool
reprepro -C amdgpu -V --basedir ./output/repo/ removefilter lunar 'Package (% *)'
# Push the updated ppa repo to the server
rsync -azP ./output/repo/ ferreo@direct.pika-os.com:/srv/www/pikappa/

View File

@ -2,71 +2,6 @@
set -e
# AMDGPU MIRROR
mkdir -p ./output/amdgpu
cd ./output/amdgpu
# amdgpu drm dir
mkdir -p ./libd
cd ./libd
wget --recursive --no-parent -R "*20.04*.deb" -A "*" -m http://repo.radeon.com/amdgpu/5.7/ubuntu/pool/main/libd/
# Return to AMDGPU MIRROR
cd ../
# amdgpu mesa dir (depends only)
mkdir -p ./mesa
cd ./mesa
wget --recursive --no-parent -R "*20.04*.deb" -A "*" -m http://repo.radeon.com/amdgpu/5.7/ubuntu/pool/main/m/mesa-amdgpu/
# Return to AMDGPU MIRROR
cd ../
# amdgpu wayland dir (depends only)
mkdir -p ./wayland-amdgpu
cd ./wayland-amdgpu
wget --recursive --no-parent -R "*20.04*.deb" -A "*" -m http://repo.radeon.com/amdgpu/5.7/ubuntu/pool/main/w/wayland-amdgpu/
# Return to AMDGPU MIRROR
cd ../
# amdgpu wayland protocols dir (depends only)
mkdir -p ./wayland-protocols-amdgpu
cd ./wayland-protocols-amdgpu
wget --recursive --no-parent -R "*20.04*.deb" -A "*" -m http://repo.radeon.com/amdgpu/5.7/ubuntu/pool/main/w/wayland-protocols-amdgpu/
# Return to AMDGPU MIRROR
cd ../
# amdgpu proprietary dir
mkdir -p ./proprietary
cd ./proprietary
wget --recursive --no-parent -R "*20.04*.deb" -A "*" -m https://repo.radeon.com/amdgpu/5.7/ubuntu/pool/proprietary/
# Return to AMDGPU MIRROR
cd ../
# amdgpu-dkms-firmware dir
mkdir -p ./amdgpu-dkms-firmware
cd ./amdgpu-dkms-firmware
wget http://repo.radeon.com/amdgpu/5.7/ubuntu/pool/main/a/amdgpu-dkms/amdgpu-dkms-firmware_6.2.4.50700-1652687.22.04_all.deb
# Return to AMDGPU MIRROR
cd ../
mkdir -p ./output
mkdir -p ./output-tmp
find . -name \*.deb -exec cp -vf {} ./output-tmp \;
cd ./output-tmp
for i in ./*.deb
do
mkdir $i-tmp
dpkg-deb -R $i $i-tmp
cat $i-tmp/DEBIAN/control | grep Version: | head -n1 | cut -d":" -f2- | tr -d ' ' > $i-version
sed -i "s#$(cat $i-version)#$(cat $i-version)-pika$(date +"%Y%m%d").lunar5#g" $i-tmp/DEBIAN/control
dpkg-deb -b $i-tmp $i-"$(date +"%Y%m%d")"-pika-lunar5-fixed.deb
done
cd ../
mv -v ./output-tmp/*-fixed.deb ./output/
# send debs to server
rsync -azP ./output/ ferreo@direct.pika-os.com:/srv/www/incoming/
# add debs to repo
ssh ferreo@direct.pika-os.com 'aptly repo add -force-replace -remove-files pika-amdgpu /srv/www/incoming/'
# publish the repo
ssh ferreo@direct.pika-os.com 'aptly publish update -batch -skip-contents -force-overwrite lunar filesystem:pikarepo:'
cd ../
mkdir -p ./outputmantic/amdgpu
cd ./outputmantic/amdgpu
# amdgpu drm dir

View File

@ -5,28 +5,6 @@ set -e
chmod 755 ./ppp
# Extranal Kubuntu Backports PPA MIRROR
mkdir -p ./output
cd ./output
../ppp https://ppa.pika-os.com/dists/lunar/external/binary-i386/Packages https://ppa.launchpadcontent.net/kubuntu-ppa/backports/ubuntu/dists/lunar/main/binary-i386/Packages.xz https://ppa.launchpadcontent.net/kubuntu-ppa/backports/ubuntu/ ./
../ppp https://ppa.pika-os.com/dists/lunar/external/binary-amd64/Packages https://ppa.launchpadcontent.net/kubuntu-ppa/backports/ubuntu/dists/lunar/main/binary-amd64/Packages.xz https://ppa.launchpadcontent.net/kubuntu-ppa/backports/ubuntu/ ./
cd ../
if [ $(ls ./output/ | wc -l) -lt 1 ]; then
echo "Lunar repos are synced"
fi
# send debs to server
rsync -azP ./output/ ferreo@direct.pika-os.com:/srv/www/incoming/
# add debs to repo
ssh ferreo@direct.pika-os.com 'aptly repo add -force-replace -remove-files pika-external /srv/www/incoming/'
# publish the repo
ssh ferreo@direct.pika-os.com 'aptly publish update -batch -skip-contents -force-overwrite lunar filesystem:pikarepo:'
# Extranal XtraDEB PPA MIRROR
mkdir -p ./manticoutput
cd ./manticoutput

View File

@ -4,29 +4,7 @@ set -e
# Give correct perms to Apt version checker
chmod 755 ./ppp
# Extranal XtraDEB PPA MIRROR
mkdir -p ./output
cd ./output
../ppp https://ppa.pika-os.com/dists/lunar/external/binary-i386/Packages https://packages.lunarg.com/vulkan/dists/jammy/main/binary-i386/Packages https://packages.lunarg.com/vulkan/ ./
../ppp https://ppa.pika-os.com/dists/lunar/external/binary-amd64/Packages https://packages.lunarg.com/vulkan/dists/jammy/main/binary-amd64/Packages https://packages.lunarg.com/vulkan/ ./
cd ../
if [ $(ls ./output/ | wc -l) -lt 1 ]; then
echo "Lunar repos are synced"
fi
# send debs to server
rsync -azP ./output/ ferreo@direct.pika-os.com:/srv/www/incoming/
# add debs to repo
ssh ferreo@direct.pika-os.com 'aptly repo add -force-replace -remove-files pika-external /srv/www/incoming/'
# publish the repo
ssh ferreo@direct.pika-os.com 'aptly publish update -batch -skip-contents -force-overwrite lunar filesystem:pikarepo:'
# Extranal lunarg PPA MIRROR
mkdir -p ./manticoutput
cd ./manticoutput

View File

@ -4,29 +4,6 @@ set -e
# Give correct perms to Apt version checker
chmod 755 ./ppp
# Extranal XtraDEB PPA MIRROR
mkdir -p ./output
cd ./output
../ppp https://ppa.pika-os.com/dists/lunar/external/binary-amd64/Packages https://ppa.launchpadcontent.net/wasta-linux/cinnamon-testing/ubuntu/dists/jammy/main/binary-amd64/Packages.xz https://ppa.launchpadcontent.net/wasta-linux/cinnamon-testing/ubuntu/ ./ "mintinstall,warpinator,webapp-manager,mint-common,mint-translations"
../ppp https://ppa.pika-os.com/dists/lunar/external/binary-amd64/Packages https://ppa.launchpadcontent.net/papirus/papirus/ubuntu/dists/lunar/main/binary-amd64/Packages.xz https://ppa.launchpadcontent.net/papirus/papirus/ubuntu/ ./
cd ../
if [ $(ls ./output/ | wc -l) -lt 1 ]; then
echo "Lunar repos are synced"
fi
# send debs to server
rsync -azP ./output/ ferreo@direct.pika-os.com:/srv/www/incoming/
# add debs to repo
ssh ferreo@direct.pika-os.com 'aptly repo add -force-replace -remove-files pika-external /srv/www/incoming/'
# publish the repo
ssh ferreo@direct.pika-os.com 'aptly publish update -batch -skip-contents -force-overwrite lunar filesystem:pikarepo:'
# Extranal XtraDEB PPA MIRROR
mkdir -p ./manticoutput
cd ./manticoutput

View File

@ -5,27 +5,6 @@ set -e
chmod 755 ./ppp
# Extranal Mozilla PPA MIRROR
mkdir -p ./output
cd ./output
../ppp https://ppa.pika-os.com/dists/lunar/external/binary-amd64/Packages https://ppa.launchpadcontent.net/mozillateam/ppa/ubuntu/dists/lunar/main/binary-amd64/Packages.xz https://ppa.launchpadcontent.net/mozillateam/ppa/ubuntu/ ./
cd ../
if [ $(ls ./output/ | wc -l) -lt 1 ]; then
echo "Lunar repos are synced"
fi
# send debs to server
rsync -azP ./output/ ferreo@direct.pika-os.com:/srv/www/incoming/
# add debs to repo
ssh ferreo@direct.pika-os.com 'aptly repo add -force-replace -remove-files pika-external /srv/www/incoming/'
# publish the repo
ssh ferreo@direct.pika-os.com 'aptly publish update -batch -skip-contents -force-overwrite lunar filesystem:pikarepo:'
# Extranal XtraDEB PPA MIRROR
mkdir -p ./manticoutput
cd ./manticoutput

View File

@ -5,28 +5,6 @@ set -e
chmod 755 ./ppp
# Extranal Nvidia MIRROR
mkdir -p ./output
cd ./output
../ppp https://ppa.pika-os.com/dists/lunar/external/binary-i386/Packages https://ppa.launchpadcontent.net/graphics-drivers/ppa/ubuntu/dists/lunar/main/binary-i386/Packages.xz https://ppa.launchpadcontent.net/graphics-drivers/ppa/ubuntu/ ./
../ppp https://ppa.pika-os.com/dists/lunar/external/binary-amd64/Packages https://ppa.launchpadcontent.net/graphics-drivers/ppa/ubuntu/dists/lunar/main/binary-amd64/Packages.xz https://ppa.launchpadcontent.net/graphics-drivers/ppa/ubuntu/ ./
cd ../
if [ $(ls ./output/ | wc -l) -lt 1 ]; then
echo "Lunar repos are synced"
fi
# send debs to server
rsync -azP ./output/ ferreo@direct.pika-os.com:/srv/www/incoming/
# add debs to repo
ssh ferreo@direct.pika-os.com 'aptly repo add -force-replace -remove-files pika-external /srv/www/incoming/'
# publish the repo
ssh ferreo@direct.pika-os.com 'aptly publish update -batch -skip-contents -force-overwrite lunar filesystem:pikarepo:'
# Extranal XtraDEB PPA MIRROR
mkdir -p ./manticoutput
cd ./manticoutput

View File

@ -5,28 +5,6 @@ set -e
chmod 755 ./ppp
# Extranal Oibaf PPA MIRROR
mkdir -p ./output
cd ./output
../ppp https://ppa.pika-os.com/dists/lunar/external/binary-i386/Packages https://ppa.launchpadcontent.net/oibaf/graphics-drivers/ubuntu/dists/lunar/main/binary-i386/Packages.xz https://ppa.launchpadcontent.net/oibaf/graphics-drivers/ubuntu/ ./ "meson,16,15,spirv,directx-headers,libdrm"
../ppp https://ppa.pika-os.com/dists/lunar/external/binary-amd64/Packages https://ppa.launchpadcontent.net/oibaf/graphics-drivers/ubuntu/dists/lunar/main/binary-amd64/Packages.xz https://ppa.launchpadcontent.net/oibaf/graphics-drivers/ubuntu/ ./ "meson,16,15,spirv,directx-headers,libdrm"
cd ../
if [ $(ls ./output/ | wc -l) -lt 1 ]; then
echo "Lunar repos are synced"
fi
# send debs to server
rsync -azP ./output/ ferreo@direct.pika-os.com:/srv/www/incoming/
# add debs to repo
ssh ferreo@direct.pika-os.com 'aptly repo add -force-replace -remove-files pika-external /srv/www/incoming/'
# publish the repo
ssh ferreo@direct.pika-os.com 'aptly publish update -batch -skip-contents -force-overwrite lunar filesystem:pikarepo:'
# Extranal XtraDEB PPA MIRROR
mkdir -p ./manticoutput
cd ./manticoutput

View File

@ -5,28 +5,6 @@ set -e
chmod 755 ./ppp
# Extranal Steam MIRROR
mkdir -p ./output
cd ./output
../ppp https://ppa.pika-os.com/dists/lunar/external/binary-i386/Packages https://repo.steampowered.com/steam/dists/stable/steam/binary-i386/Packages https://repo.steampowered.com/steam/ ./
../ppp https://ppa.pika-os.com/dists/lunar/external/binary-amd64/Packages https://repo.steampowered.com/steam/dists/stable/steam/binary-amd64/Packages https://repo.steampowered.com/steam/ ./
cd ../
if [ $(ls ./output/ | wc -l) -lt 1 ]; then
echo "Lunar repos are synced"
fi
# send debs to server
rsync -azP ./output/ ferreo@direct.pika-os.com:/srv/www/incoming/
# add debs to repo
ssh ferreo@direct.pika-os.com 'aptly repo add -force-replace -remove-files pika-external /srv/www/incoming/'
# publish the repo
ssh ferreo@direct.pika-os.com 'aptly publish update -batch -skip-contents -force-overwrite lunar filesystem:pikarepo:'
# Extranal XtraDEB PPA MIRROR
mkdir -p ./manticoutput
cd ./manticoutput

View File

@ -5,27 +5,6 @@ set -e
chmod 755 ./ppp
# Extranal System76 PPA MIRROR
mkdir -p ./output
cd ./output
../ppp https://ppa.pika-os.com/dists/lunar/external/binary-amd64/Packages https://ppa.launchpadcontent.net/system76-dev/pre-stable/ubuntu/dists/lunar/main/binary-amd64/Packages.xz https://ppa.launchpadcontent.net/system76-dev/pre-stable/ubuntu/ ./
cd ../
if [ $(ls ./output/ | wc -l) -lt 1 ]; then
echo "Lunar repos are synced"
fi
# send debs to server
rsync -azP ./output/ ferreo@direct.pika-os.com:/srv/www/incoming/
# add debs to repo
ssh ferreo@direct.pika-os.com 'aptly repo add -force-replace -remove-files pika-external /srv/www/incoming/'
# publish the repo
ssh ferreo@direct.pika-os.com 'aptly publish update -batch -skip-contents -force-overwrite lunar filesystem:pikarepo:'
# Extranal XtraDEB PPA MIRROR
mkdir -p ./manticoutput
cd ./manticoutput

View File

@ -1,13 +0,0 @@
#! /bin/bash
set -e
### In the Case of a major mishap we wipe the external pool clean and re run all repos
# Pull down existing ppa repo db files etc
mkdir -p ./output/repo
rsync -azP --exclude '*.deb' ferreo@direct.pika-os.com:/srv/www/pikappa/ ./output/repo
# Remove our All package from the pool
reprepro -C external -V --basedir ./output/repo/ removefilter lunar 'Package (% *)'
# Push the updated ppa repo to the server
rsync -azP ./output/repo/ ferreo@direct.pika-os.com:/srv/www/pikappa/

View File

@ -4,27 +4,6 @@ set -e
# Give correct perms to Apt version checker
chmod 755 ./ppp
# Extranal XtraDEB PPA MIRROR
mkdir -p ./output
cd ./output
../ppp https://ppa.pika-os.com/dists/lunar/external/binary-amd64/Packages https://ppa.launchpadcontent.net/xtradeb/apps/ubuntu/dists/lunar/main/binary-amd64/Packages.xz https://ppa.launchpadcontent.net/xtradeb/apps/ubuntu/ ./ "chromium"
cd ../
if [ $(ls ./output/ | wc -l) -lt 1 ]; then
echo "Lunar repos are synced"
fi
# send debs to server
rsync -azP ./output/ ferreo@direct.pika-os.com:/srv/www/incoming/
# add debs to repo
ssh ferreo@direct.pika-os.com 'aptly repo add -force-replace -remove-files pika-external /srv/www/incoming/'
# publish the repo
ssh ferreo@direct.pika-os.com 'aptly publish update -batch -skip-contents -force-overwrite lunar filesystem:pikarepo:'
# Extranal XtraDEB PPA MIRROR
mkdir -p ./manticoutput
cd ./manticoutput

View File

@ -1,13 +0,0 @@
#! /bin/bash
set -e
### In the Case of a major mishap we wipe the rocm pool clean and re run all repos
# Pull down existing ppa repo db files etc
mkdir -p ./output/repo
rsync -azP --exclude '*.deb' ferreo@direct.pika-os.com:/srv/www/pikappa/ ./output/repo
# Remove our All package from the pool
reprepro -C rocm -V --basedir ./output/repo/ removefilter lunar 'Package (% *)'
# Push the updated ppa repo to the server
rsync -azP ./output/repo/ ferreo@direct.pika-os.com:/srv/www/pikappa/

View File

@ -1,13 +0,0 @@
#! /bin/bash
set -e
### In the Case of a major mishap we wipe the ubuntu pool clean and re run all repos
# Pull down existing ppa repo db files etc
mkdir -p ./output/repo
rsync -azP --exclude '*.deb' ferreo@direct.pika-os.com:/srv/www/pikappa/ ./output/repo
# Remove our All package from the pool
reprepro -C ubuntu -V --basedir ./output/repo/ removefilter lunar 'Package (% *)'
# Push the updated ppa repo to the server
rsync -azP ./output/repo/ ferreo@direct.pika-os.com:/srv/www/pikappa/