Skip to content
Snippets Groups Projects
Commit 004c5dd5 authored by Karel van Klink's avatar Karel van Klink :smiley_cat:
Browse files

Clean up .gitlab-ci.yml

parent 078cf0e0
No related branches found
No related tags found
1 merge request!64Add a role to perform checks after base config
Pipeline #85222 failed
stages:
variables:
release_branch: "release"
target_branche: "main"
stages: # List of stages for jobs, and their order of execution
- setup
- linting - linting
- build
- publish
#publish-job: # This job runs in the build stage, which runs first.
# stage: publish
# script:
# - cd geant
# - ansible-galaxy collection publish ops_ansible --api-key $ANSIBLE_VARIABLE_API_KEY
# tags:
# - ansible
# - lab
# rules:
# - if: $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME =~ /^feature/ && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "main"
#build-job: # This job runs in the build stage, which runs first.
# stage: build
# script:
# - cd geant
# - ansible-galaxy collection build ops_ansible
# tags:
# - ansible
# - lab
# artifacts:
# paths:
# - ./*.tar.gz
# only:
# - main
ansible-lint: ansible-lint:
stage: linting stage: linting
image: registry.gitlab.com/pipeline-components/ansible-lint:latest image: registry.gitlab.com/pipeline-components/ansible-lint:latest
before_script:
- python -m pip install jmespath
- ansible-galaxy role install Juniper.junos
script: script:
- ansible-lint -f codeclimate | python -m json.tool | tee "${CI_PROJECT_DIR}/codeclimate-results.json" - ansible-lint -f codeclimate | python -m json.tool | tee "${CI_PROJECT_DIR}/codeclimate-results.json"
artifacts: artifacts:
...@@ -50,12 +18,3 @@ ansible-lint: ...@@ -50,12 +18,3 @@ ansible-lint:
- "${CI_PROJECT_DIR}/codeclimate-results.json" - "${CI_PROJECT_DIR}/codeclimate-results.json"
tags: tags:
- docker-executor - docker-executor
install-dependencies:
stage: setup
script:
- pip install jmespath
- ansible-galaxy role install Juniper.junos
tags:
- ansible
- lab
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment