Merge branch 'master' of https://git.willaspace.com/External-Projects/Champya-Vue
commit
a78cb30479
@ -0,0 +1,16 @@
|
||||
FROM node:16.7.0-alpine AS builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY package*.json ./
|
||||
|
||||
RUN yarn
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN yarn build
|
||||
|
||||
|
||||
FROM nginx:1.21.1
|
||||
|
||||
COPY --from=builder /app/dist /usr/share/nginx/html
|
@ -0,0 +1,25 @@
|
||||
pipeline {
|
||||
agent {
|
||||
node {
|
||||
label 'willa'
|
||||
}
|
||||
|
||||
}
|
||||
stages {
|
||||
stage('build') {
|
||||
steps {
|
||||
sh 'docker build -t registry.willaspace.com/willaspace/$IMAGE_NAME:latest .'
|
||||
}
|
||||
}
|
||||
|
||||
stage('deploy') {
|
||||
steps {
|
||||
sh 'cd /apps/$IMAGE_NAME/; docker-compose up -d'
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
environment {
|
||||
IMAGE_NAME = 'champya-front'
|
||||
}
|
||||
}
|
Loading…
Reference in new issue