diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..d9c4057 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,30 @@ +kind: pipeline +type: docker +name: maettleship + +trigger: + event: + - push + +steps: + - name: maettleship-build + image: plugins/docker + settings: + dockerfile: Dockerfile + context: . + registry: hub.codefirst.iut.uca.fr + repo: hub.codefirst.iut.uca.fr/vincent.astolfi/maettleship + username: + from_secret: registry-username + password: + from_secret: registry-password + + - name: maettleship-deployment + image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest + environment: + IMAGENAME: hub.codefirst.iut.uca.fr/vincent.astolfi/maettleship:latest + CONTAINERNAME: maettleship + COMMAND: create + OVERWRITE: true + ADMINS: vincentastolfi + depends_on: [maettleship-build] diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..2a5f621 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,6 @@ +FROM node:10 +WORKDIR /usr/src/app +COPY ./ ./ +RUN npm install +EXPOSE 8080 +CMD [ "npm", "run", "start" ]