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:
######## DOCKER BUILD AND PUSH TO REGISTRY ########
- name: build docker image and push to registry
image: plugins/docker
volumes:
- name: appsource
path: "/src"
- name: dockersock
path: "/var/run/docker.sock"
settings:
debug: true
username:
from_secret: REGISTRY_USER
password:
from_secret: REGISTRY_PASSWORD
# registry: "dockerregistry.legaragenumerique.fr"
# insecure: true
# privileged: true
repo: "greglebreton/terminal-cv"
# tags: ${DRONE_TAG}
dockerfile: ./Dockerfile
# - name: build docker image and push to registry
# image: plugins/docker
# volumes:
# - name: appsource
# path: "/src"
# - name: dockersock
# path: "/var/run/docker.sock"
# settings:
# debug: true
# username:
# from_secret: REGISTRY_USER
# password:
# from_secret: REGISTRY_PASSWORD
# # registry: "dockerregistry.legaragenumerique.fr"
# # insecure: true
# # privileged: true
# repo: "greglebreton/terminal-cv"
# # tags: ${DRONE_TAG}
# dockerfile: ./Dockerfile
- name: install npm dependancies
image: node
commands:
- npm install
- npm test
######## 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