This commit is contained in:
Ward Nakchbandi (Cosmic Fusion) 2023-10-27 11:42:55 +03:00 committed by GitHub
parent a3f2663232
commit d714d8c181
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 3 deletions

View File

@ -1,4 +1,4 @@
name: PikaOS Sync oneAPI Sync
name: PikaOS Sync Intel oneAPI Sync
on:
workflow_dispatch

View File

@ -1,8 +1,27 @@
#! /bin/bash
set -e
# Give correct perms to Apt version checker
chmod 755 ./ppp
# Get oneAPI pool
mkdir -p ./manticoutput
cd ./manticoutput
../ppp https://ppa.pika-os.com/dists/pikauwu/oneapi/binary-amd64/Packages https://repositories.intel.com/gpu/ubuntu/dists/jammy/unified/binary-amd64/Packages https://repositories.intel.com/gpu/ubuntu/ ./
cd ../
if [ $(ls ./manticoutput/ | wc -l) -lt 1 ]; then
echo "Mantic repos are synced"
exit 0
fi
# send debs to server
rsync -azP ./manticoutput/ ferreo@direct.pika-os.com:/srv/www/incoming/
# add debs to repo
ssh ferreo@direct.pika-os.com 'aptly repo create -distribution=pikauwu -component=oneapi pikauwu-oneapi'
ssh ferreo@direct.pika-os.com 'aptly repo add -force-replace -remove-files pikauwu-oneapi /srv/www/incoming/'
# publish the repo
ssh ferreo@direct.pika-os.com 'aptly publish repo -component=, pikauwu-oneapi filesystem:pikarepo:'
ssh ferreo@direct.pika-os.com 'aptly publish update -batch -skip-contents -force-overwrite pikauwu filesystem:pikarepo:'