Alcuni aggiustamenti per automatizzazione.
This commit is contained in:
parent
057a834b32
commit
36b31b458d
2 changed files with 21 additions and 4 deletions
23
.drone.yml
23
.drone.yml
|
@ -3,7 +3,24 @@ type: docker
|
|||
name: default
|
||||
|
||||
steps:
|
||||
- name: greeting
|
||||
image: alpine
|
||||
- name: Build and publish
|
||||
image: git.sys42.eu/syntaxerrormmm/pelican-base:1.0.0
|
||||
environment:
|
||||
HOSTNAME:
|
||||
from_secret: conference_hostname
|
||||
USERNAME:
|
||||
from_secret: conference_username
|
||||
PORT:
|
||||
from_secret: conference_port
|
||||
commands:
|
||||
- echo hello
|
||||
- pushd ~
|
||||
- ./prepare.sh
|
||||
- python3 -m venv venv --system-site-packages
|
||||
- source venv/bin/activate
|
||||
- popd
|
||||
- pip install -r requirements.txt
|
||||
- make rsync_public
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- push
|
||||
|
|
2
Makefile
2
Makefile
|
@ -26,7 +26,7 @@ ifneq ($(PORT), 0)
|
|||
PELICANOPTS += -p $(PORT)
|
||||
endif
|
||||
|
||||
SSH_HOST = root@franco
|
||||
SSH_HOST = conference-remote
|
||||
SSH_TARGET_DIR = /var/www/conference/
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue