test plugin node install & build

main
greglebreton 2 years ago
parent e4e8505831
commit 97b9311b77
  1. 45
      .drone.yml
  2. 11
      docker-compose.yml

@ -12,25 +12,32 @@ trigger:
steps: steps:
######## DOCKER BUILD AND PUSH TO REGISTRY ######## ######## DOCKER BUILD AND PUSH TO REGISTRY ########
- name: build docker image and push to registry # - name: build docker image and push to registry
image: plugins/docker # image: plugins/docker
volumes: # volumes:
- name: appsource # - name: appsource
path: "/src" # path: "/src"
- name: dockersock # - name: dockersock
path: "/var/run/docker.sock" # path: "/var/run/docker.sock"
settings: # settings:
debug: true # debug: true
username: # username:
from_secret: REGISTRY_USER # from_secret: REGISTRY_USER
password: # password:
from_secret: REGISTRY_PASSWORD # from_secret: REGISTRY_PASSWORD
# registry: "dockerregistry.legaragenumerique.fr" # # registry: "dockerregistry.legaragenumerique.fr"
# insecure: true # # insecure: true
# privileged: true # # privileged: true
repo: "greglebreton/terminal-cv" # repo: "greglebreton/terminal-cv"
# tags: ${DRONE_TAG} # # tags: ${DRONE_TAG}
dockerfile: ./Dockerfile # dockerfile: ./Dockerfile
- name: install npm dependancies
image: node
commands:
- npm install
- npm test
######## TELEGRAM NOTIFICATION ######## ######## TELEGRAM NOTIFICATION ########

@ -0,0 +1,11 @@
version: "3.9"
services:
terminal-cv:
image: greglebreton/terminal-cv:latest
container_name: terminal-cv
restart: unless-stopped
ports:
- 20221:80
# volumes:
# - ./site:/var/www/localhost/htdocs
Loading…
Cancel
Save