test plugin node install & build
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
greglebreton 2022-12-27 15:04:30 +01:00
parent e4e8505831
commit 97b9311b77
2 changed files with 37 additions and 19 deletions

View File

@ -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 ########

11
docker-compose.yml Normal file
View File

@ -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