From 36b31b458d7e8829b54a018788f7e0d6af374b35 Mon Sep 17 00:00:00 2001 From: Emiliano Vavassori Date: Fri, 1 Mar 2024 03:08:42 +0100 Subject: [PATCH] Alcuni aggiustamenti per automatizzazione. --- .drone.yml | 23 ++++++++++++++++++++--- Makefile | 2 +- 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index cf14621..88effdd 100644 --- a/.drone.yml +++ b/.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 diff --git a/Makefile b/Makefile index 03515af..22fb160 100644 --- a/Makefile +++ b/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/