generated from alice-meta-packages/alice-meta-template
			Initial commit
This commit is contained in:
		
						commit
						d75c0b5d15
					
				| 
						 | 
				
			
			@ -0,0 +1,23 @@
 | 
			
		|||
name: Deploy Package
 | 
			
		||||
run-name: ${{ gitea.actor }} is deploying
 | 
			
		||||
on: [push]
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  Explore-Gitea-Actions:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    steps:
 | 
			
		||||
      - name: Deploy to alice
 | 
			
		||||
        run: |
 | 
			
		||||
          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 ..
 | 
			
		||||
          dpkg-deb --build ${{ github.event.repository.name }}
 | 
			
		||||
          mv ${{ github.event.repository.name }}.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
 | 
			
		||||
          EOF
 | 
			
		||||
| 
						 | 
				
			
			@ -0,0 +1,8 @@
 | 
			
		|||
Package: NOME DO PACOTE
 | 
			
		||||
Version: 1.0
 | 
			
		||||
Section: admin
 | 
			
		||||
Priority: optional
 | 
			
		||||
Architecture: amd64
 | 
			
		||||
Depends: DEPENDENCIAS
 | 
			
		||||
Maintainer: SEU NOME <seu@email.com>
 | 
			
		||||
Description: META-PACOTE EXEMPLO
 | 
			
		||||
| 
						 | 
				
			
			@ -0,0 +1,3 @@
 | 
			
		|||
#!/bin/sh
 | 
			
		||||
 | 
			
		||||
# Script executado pós instalação
 | 
			
		||||
		Loading…
	
		Reference in New Issue