Merge pull request #1 from viastolfi/deployement
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
Deployementdeployement
commit
31fb6525d4
@ -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]
|
@ -0,0 +1,7 @@
|
||||
FROM node:10
|
||||
WORKDIR /usr/src/app
|
||||
COPY ./ ./
|
||||
RUN sed -i '1i\<base href="https://codefirst.iut.uca.fr/containers/vincentastolfi-maettleship">' ./public/index.html
|
||||
RUN npm install
|
||||
EXPOSE 8081
|
||||
CMD [ "npm", "run", "dev" ]
|
Loading…
Reference in new issue