test: refs #6695 e2e better build front image
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Alex Moreno 2025-02-06 09:28:35 +01:00
parent dc8aa396fa
commit b07ff84f19
2 changed files with 5 additions and 3 deletions

4
Jenkinsfile vendored
View File

@ -120,8 +120,8 @@ pipeline {
}
stage('Frontend') {
steps {
// sh 'quasar build' // Use quasar prod version
sh 'docker-compose -f docker-compose.e2e.yml build'
sh 'docker build -f docker-compose.e2e.yml -t front'
// sh 'docker-compose -f docker-compose.e2e.yml build'
sh 'docker-compose -f docker-compose.e2e.yml up -d front'
}
}

View File

@ -1,6 +1,7 @@
version: '3.7'
services:
front:
image: front
command: npx quasar dev
# command: npx quasar serve --history --proxy ./proxy.mjs --hostname 127.0.0.1 --port 9000
build:
@ -10,7 +11,8 @@ services:
volumes:
- ./node_modules:/app/node_modules
e2e:
command: npx cypress run --browser chromium
image: front
command: pnpx cypress run --browser chromium
build:
context: .
dockerfile: ./Dockerfile.e2e