Skip to content

Commit

Permalink
Modificación de nginx en caso de frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
aitorcajas committed Jan 2, 2025
1 parent aa7ba62 commit a572de3
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions jenkins/ci
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,13 @@ pipeline {
stage('Modificar nginx.conf según el entorno') {
steps {
script {
if (repo.contains('frontend')) {
sh """
sed "s/ENVIRONMENT/${entorno}/g" nginx.conf.template > nginx.conf
cat nginx.conf
"""
dir('repo') {
if (repo.contains('frontend')) {
sh """
sed "s/ENVIRONMENT/${entorno}/g" nginx.conf.template > nginx.conf
cat nginx.conf
"""
}
}
}
}
Expand Down

0 comments on commit a572de3

Please sign in to comment.