Last active
January 15, 2024 16:05
-
-
Save aabril/f115396b439b519af1cb1845c044f48e to your computer and use it in GitHub Desktop.
gitlab-ci-sample.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stages: | |
- terraform | |
- deploy | |
variables: | |
# Puedes definir variables globales aquí si es necesario | |
.default_job_template: &default_job | |
tags: | |
- on-prem | |
- docker | |
- linux | |
- amd64 | |
- gen10 | |
infinity-terraform: | |
<<: *default_job | |
stage: terraform | |
script: | |
- echo "Ejecutando infinity-terraform" | |
infinity-deploy: | |
<<: *default_job | |
stage: deploy | |
script: | |
- echo "Ejecutando infinity-deploy" | |
cupsim-terraform: | |
<<: *default_job | |
stage: terraform | |
script: | |
- echo "Ejecutando cupsim-terraform" | |
cupsim-deploy: | |
<<: *default_job | |
stage: deploy | |
script: | |
- echo "Ejecutando cupsim-deploy" | |
# Define dependencias entre las tareas | |
before_script: | |
- echo "Configurando el entorno antes de ejecutar las tareas" | |
job_dependencies: | |
- infinity-terraform | |
- cupsim-terraform | |
infinity-terraform: | |
- job_dependencies | |
infinity-deploy: | |
- infinity-terraform | |
cupsim-terraform: | |
- job_dependencies | |
cupsim-deploy: | |
- cupsim-terraform |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stages: | |
- terraform | |
- deploy | |
variables: | |
# Puedes definir variables globales aquí si es necesario | |
infinity-terraform: | |
stage: terraform | |
script: | |
- echo "Ejecutando infinity-terraform" | |
tags: | |
- on-prem | |
- docker | |
- linux | |
- amd64 | |
- gen10 | |
infinity-deploy: | |
stage: deploy | |
script: | |
- echo "Ejecutando infinity-deploy" | |
tags: | |
- on-prem | |
- docker | |
- linux | |
- amd64 | |
- gen10 | |
cupsim-terraform: | |
stage: terraform | |
script: | |
- echo "Ejecutando cupsim-terraform" | |
tags: | |
- on-prem | |
- docker | |
- linux | |
- amd64 | |
- gen10 | |
cupsim-deploy: | |
stage: deploy | |
script: | |
- echo "Ejecutando cupsim-deploy" | |
tags: | |
- on-prem | |
- docker | |
- linux | |
- amd64 | |
- gen10 | |
# Define dependencias entre las tareas | |
before_script: | |
- echo "Configurando el entorno antes de ejecutar las tareas" | |
job_dependencies: | |
- infinity-terraform | |
- cupsim-terraform | |
infinity-terraform: | |
- job_dependencies | |
infinity-deploy: | |
- infinity-terraform | |
cupsim-terraform: | |
- job_dependencies | |
cupsim-deploy: | |
- cupsim-terraform |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment