update workflow
This commit is contained in:
parent
2a629a7483
commit
0bf0a8006d
|
@ -18,7 +18,17 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
echo "${{ secrets.SCP_KEY_ALICE }}" > /tmp/ssh_private_key
|
echo "${{ secrets.SCP_KEY_ALICE }}" > /tmp/ssh_private_key
|
||||||
chmod 600 /tmp/ssh_private_key
|
chmod 600 /tmp/ssh_private_key
|
||||||
scp -o "StrictHostKeyChecking no" -i /tmp/ssh_private_key -P ${{ secrets.SSH_PORT_ALICE }} -r ${{ gitea.repository }} act_runner@alice.ufsj.edu.br:/var/www/html/debian
|
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
|
||||||
|
dpkg-deb --build ${{ gitea.repository }}
|
||||||
|
mv ${{ gitea.repository }}.deb /var/www/html/debian/pool/main
|
||||||
|
cd /var/www/html/debian
|
||||||
|
dpkg-scanpackages pool/ > dists/stable/main/binary-amd64/Packages
|
||||||
|
apt-ftparchive -c /var/www/html/debian/apt-ftparchive.conf release /var/www/html/debian/dists/stable > /var/www/html/debian/dists/stable/Release
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# scp -o "StrictHostKeyChecking no" -i /tmp/ssh_private_key -P ${{ secrets.SSH_PORT_ALICE }} -r ${{ gitea.repository }} act_runner@alice.ufsj.edu.br:/var/www/html/debian
|
||||||
|
|
||||||
# - run: cd ${{ gitea.workspace }}
|
# - run: cd ${{ gitea.workspace }}
|
||||||
# - run: bundle install
|
# - run: bundle install
|
||||||
|
|
Loading…
Reference in New Issue