diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bd37fa24f82cd88dfebadcce606a123aa5ff539e..fd405c8fc195550b27132347b0316323f971cb3d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,9 +6,6 @@ variables: AUTHOR: fejao IMAGE_NAME_LINT: python:3.10.15-bullseye - # PATH_ENV_DIR: "/builds/fejao/c3infodesk-deployment-role-test" - # PATH_PYTHON_REQ_FILE: "/builds/fejao/c3infodesk-deployment-role-test/ci-cd/python_requirements.txt" - # PATH_PLAYBOOK: "/builds/fejao/c3infodesk-deployment-role-test/ci-cd/playbook_role_test.yml" PATH_ENV_DIR: "/builds/fejao/c3infodesk-deployment-role-dependencies" PATH_PYTHON_REQ_FILE: "/builds/fejao/c3infodesk-deployment-role-dependencies/ci-cd/python_requirements.txt" PATH_PLAYBOOK: "/builds/fejao/c3infodesk-deployment-role-dependencies/ci-cd/playbook_role_test.yml" @@ -31,6 +28,9 @@ stages: ### See https://github.com/ansible/ansible/pull/42142/files - chmod 700 $PATH_ENV_DIR +### +### JOBS +### yamllint-test: stage: yamllint image: $IMAGE_NAME_LINT @@ -40,15 +40,14 @@ yamllint-test: before_script: - *install_dependencies script: - - echo "This is the 'yamllint' test from the 'test' role" + - echo "This is the 'yamllint' test from the 'dependencies' role" - yamllint . -# trigger-pipeline: -# stage: upstream-trigger -# variables: -# # RUN_UPSTREAM_FOR_ROLE_TEST: true -# RUN_UPSTREAM_FOR_ROLE_DEPENDENCIES: true -# trigger: -# project: fejao/c3infodesk-deployment -# branch: main -# strategy: depend +trigger-pipeline: + stage: upstream-trigger + variables: + RUN_UPSTREAM_FOR_ROLE_DEPENDENCIES: true + trigger: + project: fejao/c3infodesk-deployment + branch: main + strategy: depend