From 97b9311b7711d8e9b382e2b3264017bb2356b412 Mon Sep 17 00:00:00 2001 From: greglebreton Date: Tue, 27 Dec 2022 15:04:30 +0100 Subject: [PATCH] test plugin node install & build --- .drone.yml | 45 ++++++++++++++++++++++++++------------------- docker-compose.yml | 11 +++++++++++ 2 files changed, 37 insertions(+), 19 deletions(-) create mode 100644 docker-compose.yml diff --git a/.drone.yml b/.drone.yml index 2e6b993..dddb2d2 100644 --- a/.drone.yml +++ b/.drone.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 ######## diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..b79ae49 --- /dev/null +++ b/docker-compose.yml @@ -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