Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
c3infodesk-deployment
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
fejao
c3infodesk-deployment
Commits
71c2d0f9
Commit
71c2d0f9
authored
6 months ago
by
fejao
Browse files
Options
Downloads
Patches
Plain Diff
Moving files
parent
881b6a1a
No related branches found
No related tags found
1 merge request
!9
Moving files 01
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.ansible-lint
+2
-0
2 additions, 0 deletions
.ansible-lint
.gitlab-ci.yml
+23
-1
23 additions, 1 deletion
.gitlab-ci.yml
playbooks/ci-cd/01_test.yml
+8
-0
8 additions, 0 deletions
playbooks/ci-cd/01_test.yml
with
33 additions
and
1 deletion
.ansible-lint
+
2
−
0
View file @
71c2d0f9
...
@@ -57,6 +57,8 @@ skip_list:
...
@@ -57,6 +57,8 @@ skip_list:
- loop-var-prefix[missing]
- loop-var-prefix[missing]
### Sometimes, it is need to run as command...
### Sometimes, it is need to run as command...
- command-instead-of-module
- command-instead-of-module
### For not having the playbooks on the root path
- role-name[path]
# Ansible-lint does not automatically load rules that have the 'opt-in' tag.
# Ansible-lint does not automatically load rules that have the 'opt-in' tag.
# You must enable opt-in rules by listing each rule 'id' below.
# You must enable opt-in rules by listing each rule 'id' below.
...
...
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
+
23
−
1
View file @
71c2d0f9
...
@@ -12,16 +12,24 @@ variables:
...
@@ -12,16 +12,24 @@ variables:
#####
#####
#####
#####
#####
#####
PLAYBOOK_NAME_FOR_ROLE_TEST
:
"
playbook_example_01_test.yml"
INVENTORIES_PATH
:
"
inventories/hosts"
# PLAYBOOK_NAME_FOR_ROLE_TEST: "playbook_example_01_test.yml"
PLAYBOOK_NAME_FOR_ROLE_TEST
:
"
playbooks/ci-cd/01_test.yml"
PLAYBOOK_NAME_FOR_ROLE_DEPENDENCIES
:
"
playbook_example_02_dependencies.yml"
PLAYBOOK_NAME_FOR_ROLE_DEPENDENCIES
:
"
playbook_example_02_dependencies.yml"
PLAYBOOK_NAME_FOR_ROLE_CLONE_REPOSITORIES
:
"
playbook_example_03_clone_repositories.yml"
PLAYBOOK_NAME_FOR_ROLE_CLONE_REPOSITORIES
:
"
playbook_example_03_clone_repositories.yml"
PLAYBOOK_NAME_FOR_ROLE_DOCKER_IMAGES
:
"
playbook_example_04_docker_images.yml"
PLAYBOOK_NAME_FOR_ROLE_DOCKER_IMAGES
:
"
playbook_example_04_docker_images.yml"
PLAYBOOK_NAME_FOR_ROLE_DOCKER_CONTAINERS
:
"
playbook_example_05_docker_containers.yml"
PLAYBOOK_NAME_FOR_ROLE_DOCKER_CONTAINERS
:
"
playbook_example_05_docker_containers.yml"
# PLAYBOOK_NAME_FOR_ROLE_TEST: "playbook_example_01_test.yml"
# PLAYBOOK_NAME_FOR_ROLE_DEPENDENCIES: "playbook_example_02_dependencies.yml"
# PLAYBOOK_NAME_FOR_ROLE_CLONE_REPOSITORIES: "playbook_example_03_clone_repositories.yml"
# PLAYBOOK_NAME_FOR_ROLE_DOCKER_IMAGES: "playbook_example_04_docker_images.yml"
# PLAYBOOK_NAME_FOR_ROLE_DOCKER_CONTAINERS: "playbook_example_05_docker_containers.yml"
stages
:
stages
:
-
debug
-
debug
-
build
-
build
-
test
-
test
-
syntax-check
-
lint-tests
-
lint-tests
-
docs
-
docs
-
deploy
-
deploy
...
@@ -45,6 +53,20 @@ build:
...
@@ -45,6 +53,20 @@ build:
script
:
script
:
-
echo "Here should be the images build and pushed"
-
echo "Here should be the images build and pushed"
###
### SYNTAX-CHECK
###
systax-check-test
:
stage
:
lint-tests
before_script
:
-
apt-get update && apt-get install -y python3-pip && apt-get clean && rm -rf /var/lib/apt/lists/*
-
pip3 install -r requirements.txt
script
:
-
echo "Running ansible-lint tests at the role-> 'test'"
# - ansible-playbook --systax-check -i inventories/hosts $PLAYBOOK_NAME_FOR_ROLE_TEST
-
ansible-playbook --systax-check -i $INVENTORIES_PATH $PLAYBOOK_NAME_FOR_ROLE_TEST
allow_failure
:
false
###
###
### TESTS
### TESTS
###
###
...
...
This diff is collapsed.
Click to expand it.
playbooks/ci-cd/01_test.yml
0 → 100644
+
8
−
0
View file @
71c2d0f9
---
# Runs the role test
-
name
:
CI-CD playbook for running the role 'test'
hosts
:
-
example_servers_group
roles
:
-
roles/test
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment