liste-de-courses-www/.drone.yml
2022-07-20 08:54:22 +02:00

37 lines
711 B
YAML

kind: pipeline
type: docker
steps:
- name: code-analysis
image: aosapps/drone-sonar-plugin
settings:
sonar_host:
from_secret: sonar_host
sonar_token:
from_secret: sonar_token
- name: build
image: node:14
commands:
- npm install
- echo $VUE_APP_API_BASE_URL
- npm run lint
- npm run build:prod
environment:
VUE_APP_API_BASE_URL:
from_secret: baseurl
- name: scp files
image: appleboy/drone-scp
settings:
host: amine-louveau.fr
username: ubuntu
key:
from_secret: privateKey
port: 22
target: /home/ubuntu/courses
source: dist/*
when:
branch:
- main