Aggiunta automatizzazione.

This commit is contained in:
Emiliano Vavassori 2024-03-01 21:27:27 +01:00
parent f03aa047aa
commit 919d27b583
1 changed files with 21 additions and 20 deletions

View File

@ -1,28 +1,29 @@
---
kind: pipeline kind: pipeline
type: docker type: docker
name: default name: default
steps: steps:
- name: Build and publish - name: Build and publish
image: git.sys42.eu/syntaxerrormmm/pelican-base:1.0.0 image: git.sys42.eu/syntaxerrormmm/pelican-base:1.0.0
environment: environment:
HOSTNAME: HOSTNAME:
from_secret: conference_hostname from_secret: conference_hostname
USERNAME: USERNAME:
from_secret: conference_username from_secret: conference_username
PORT: PORT:
from_secret: conference_port from_secret: conference_port
SSH_PRIVATE_KEY: SSH_PRIVATE_KEY:
from_secret: conference_sshprivkey from_secret: conference_sshprivkey
commands: commands:
- pushd ~ - pushd ~
- ./prepare.sh - ./prepare.sh
- python3 -m venv venv --system-site-packages - python3 -m venv venv --system-site-packages
- source venv/bin/activate - source venv/bin/activate
- popd - popd
- pip install -r requirements.txt - pip install -r requirements.txt
- make rsync_public - make rsync_public
trigger: trigger:
event: event:
- push - push