generated from alice-meta-packages/alice-meta-template
Update .gitea/workflows/deploy.yml
Deploy Package / Explore-Gitea-Actions (push) Successful in 4s
Details
Deploy Package / Explore-Gitea-Actions (push) Successful in 4s
Details
This commit is contained in:
parent
10de2b52f3
commit
6300b04e95
|
@ -11,13 +11,27 @@ jobs:
|
|||
echo "${{ secrets.SCP_KEY_ALICE }}" > /tmp/ssh_private_key
|
||||
chmod 600 /tmp/ssh_private_key
|
||||
ssh -o "StrictHostKeyChecking no" -i /tmp/ssh_private_key act_runner@alice.ufsj.edu.br -p ${{ secrets.SSH_PORT_ALICE }} << 'EOF'
|
||||
cd /var/www/src/alice-meta
|
||||
cd ${{ github.event.repository.name }}
|
||||
git pull
|
||||
cd ..
|
||||
cd /tmp
|
||||
|
||||
echo "Removing old clones..."
|
||||
rm -rf ./${{ github.event.repository.name }}
|
||||
|
||||
echo "Cloning the repo..."
|
||||
git clone --depth=1 https://git.alice.ufsj.edu.br/${{ gitea.repository }}
|
||||
|
||||
echo "Removing .git dir..."
|
||||
rm -rf ./${{ github.event.repository.name }}/.git
|
||||
|
||||
echo "Building package..."
|
||||
dpkg-deb --build ${{ github.event.repository.name }}
|
||||
|
||||
echo "Moving package to ppa..."
|
||||
mv ${{ github.event.repository.name }}.deb /var/www/html/debian/pool/main
|
||||
cd /var/www/html/debian
|
||||
|
||||
echo "Creating Packages file..."
|
||||
dpkg-scanpackages pool/ > dists/stable/main/binary-amd64/Packages
|
||||
|
||||
echo "Creating Relase file..."
|
||||
apt-ftparchive -c /var/www/html/debian/apt-ftparchive.conf release /var/www/html/debian/dists/stable > /var/www/html/debian/dists/stable/Release
|
||||
EOF
|
||||
|
|
Loading…
Reference in New Issue