Compare commits
3 Commits
f902548d57
...
9e2e5d41eb
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9e2e5d41eb | ||
|
|
306b2297a9 | ||
|
|
50dad72782 |
@@ -94,8 +94,8 @@ pipeline {
|
|||||||
}
|
}
|
||||||
agent any
|
agent any
|
||||||
environment {
|
environment {
|
||||||
JENKINS_BASE_URL = 'http://jenkins:8080'
|
JENKINS_BASE_URL = 'https://openbokeron.org/jenkins'
|
||||||
JENKINS_JOB_NAME = 'Espetos'
|
JENKINS_JOB_NAME = 'TallerCiCd'
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
withCredentials([
|
withCredentials([
|
||||||
|
|||||||
@@ -41,6 +41,11 @@ pipeline {
|
|||||||
args '-u root'
|
args '-u root'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
environment {
|
||||||
|
PYTHONDONTWRITEBYTECODE = 1
|
||||||
|
}
|
||||||
|
|
||||||
steps {
|
steps {
|
||||||
dir('backend') {
|
dir('backend') {
|
||||||
sh '''
|
sh '''
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ services:
|
|||||||
context: ./frontend
|
context: ./frontend
|
||||||
image: cafeteria-frontend:${FRONTEND_TAG}
|
image: cafeteria-frontend:${FRONTEND_TAG}
|
||||||
ports:
|
ports:
|
||||||
- "80:80"
|
- "8081:8081"
|
||||||
depends_on:
|
depends_on:
|
||||||
backend:
|
backend:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
|||||||
@@ -8,5 +8,5 @@ RUN npm run build
|
|||||||
FROM nginx:1.27-alpine AS final
|
FROM nginx:1.27-alpine AS final
|
||||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||||
COPY --from=build /app/dist /usr/share/nginx/html
|
COPY --from=build /app/dist /usr/share/nginx/html
|
||||||
EXPOSE 80
|
EXPOSE 8081
|
||||||
CMD ["nginx", "-g", "daemon off;"]
|
CMD ["nginx", "-g", "daemon off;"]
|
||||||
|
|||||||
Reference in New Issue
Block a user