Compare commits
	
		
			No commits in common. "350ce7f4e2b946d1ebb65594b274e8c72aad8ef2" and "3210993c9ce32971305cdb920072b5750df30c41" have entirely different histories.
		
	
	
		
			350ce7f4e2
			...
			3210993c9c
		
	
		
					 3 changed files with 40 additions and 26 deletions
				
			
		
							
								
								
									
										36
									
								
								.drone.yml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										36
									
								
								.drone.yml
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,36 @@ | |||
| --- | ||||
| kind: pipeline | ||||
| type: docker | ||||
| name: default | ||||
| 
 | ||||
| steps: | ||||
|   - name: Build | ||||
|     image: git.libreitalia.org/libreitalia/site-builder:debian-1.0.2 | ||||
|     commands: | ||||
|       - . /app/venv/bin/activate | ||||
|       - pip install -r /drone/src/requirements.txt | ||||
|       - mkdir /drone/src/output | ||||
|       - pelican /drone/src/content -o /drone/src/output -s /drone/src/publishconf.py | ||||
| 
 | ||||
|   - name: Deploy | ||||
|     image: drillster/drone-rsync | ||||
|     settings: | ||||
|       hosts: | ||||
|         from_secret: conference_hostname | ||||
|       user: | ||||
|         from_secret: conference_username | ||||
|       port: | ||||
|         from_secret: conference_port | ||||
|       key: | ||||
|         from_secret: conference_sshprivkey | ||||
|       source: /drone/src/output | ||||
|       target: /var/www/conference | ||||
|       recursive: true | ||||
|       script: | ||||
|         - "sudo chown root:www-data -R /var/www/conference" | ||||
| 
 | ||||
| trigger: | ||||
|   event: | ||||
|     - custom | ||||
|     - push | ||||
|     - pull_request | ||||
|  | @ -1,24 +0,0 @@ | |||
| --- | ||||
| name: Build and Deploy | ||||
| on: [push] | ||||
| jobs: | ||||
|   Build: | ||||
|     runs-on: site-builder | ||||
|     steps: | ||||
|       - run: . /app/venv/bin/activate | ||||
|       - run: pip install -r requirements.txt | ||||
|       - run: pelican content -s publishconf.py | ||||
| 
 | ||||
|   Deploy: | ||||
|     runs-on: debian-bookworm | ||||
|     steps: | ||||
|       - uses: easingthemes/ssh-deploy@main | ||||
|         env: | ||||
|           SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} | ||||
|           SOURCE: output/ | ||||
|           REMOTE_HOST: ${{ secrets.REMOTE_HOST }} | ||||
|           REMOTE_USER: ${{ secrets.REMOTE_USER }} | ||||
|           REMOTE_PORT: ${{ secrets.REMOTE_PORT }} | ||||
|           TARGET: /var/www/conference | ||||
|           SCRIPT_AFTER: | | ||||
|             sudo chown -R root:www-data /var/www/conference | ||||
|  | @ -1,3 +1,5 @@ | |||
| [](https://dli.sys42.cc/libreitalia/conference-site) | ||||
| 
 | ||||
| # Sito web delle conferenze LibreItalia # | ||||
| 
 | ||||
| ### Istruzioni per lo sviluppo ### | ||||
|  | @ -5,10 +7,10 @@ | |||
| Il sito è costruito con [Pelican](https://getpelican.com/). Per poter | ||||
| sviluppare in locale il sito, effettuare le seguenti operazioni: | ||||
| 
 | ||||
| ```bash | ||||
| ```sh | ||||
| $ git clone https://git.libreitalia.org/libreitalia/conference-site | ||||
| $ cd conference-site | ||||
| $ python3 -m venv venv --system-site-packages | ||||
| $ python3 -m venv venv | ||||
| $ source venv/bin/activate | ||||
| $ pip install -r requirements.txt | ||||
| $ make devserver | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue