Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
c3infodesk-deployment-role-dependencies
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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
fejao
c3infodesk-deployment-role-dependencies
Commits
6ac53d92
Commit
6ac53d92
authored
1 month ago
by
fejao
Browse files
Options
Downloads
Patches
Plain Diff
setting ci-cd
parent
e830d648
No related branches found
No related tags found
1 merge request
!1
Adding files
Pipeline
#37755
failed
1 month ago
Stage: yamllint
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+52
-0
52 additions, 0 deletions
.gitlab-ci.yml
ci-cd/python_requirements.txt
+4
-0
4 additions, 0 deletions
ci-cd/python_requirements.txt
with
56 additions
and
0 deletions
.gitlab-ci.yml
0 → 100644
+
52
−
0
View file @
6ac53d92
---
###
### VARIABLES
###
variables
:
AUTHOR
:
fejao
IMAGE_NAME_LINT
:
python:3.10.15-bullseye
# PATH_ENV_DIR: "/builds/fejao/c3infodesk-deployment-role-test"
PATH_ENV_DIR
:
"
/builds/fejao/c3infodesk-deployment-role-dependencies"
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"
###
### STAGES
###
stages
:
-
yamllint
-
upstream-trigger
###
### SCRIPTS
###
.install_dependencies
:
&install_dependencies
# Install python and it's requirements
-
apt-get update && apt-get install -y python3-pip && apt-get clean && rm -rf /var/lib/apt/lists/*
-
pip3 install -r $PYTHON_REQ_FILE_PATH
### Correct the permissions on the build environment directory.
### See https://github.com/ansible/ansible/pull/42142/files
-
chmod 700 $PATH_ENV_DIR
yamllint-test
:
stage
:
yamllint
image
:
$IMAGE_NAME_LINT
variables
:
PYTHON_REQ_FILE_PATH
:
$PATH_PYTHON_REQ_FILE
PLAYBOOK_PATH
:
$PATH_PLAYBOOK
before_script
:
-
*install_dependencies
script
:
-
echo "This is the 'yamllint' test from the 'test' 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
This diff is collapsed.
Click to expand it.
ci-cd/python_requirements.txt
0 → 100644
+
4
−
0
View file @
6ac53d92
yamllint
ansible
ansible-dev-tools
ansible-lint
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