Code development platform for open source projects from the European Union institutions
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
Netbox Plugins
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
DIGIT-C4
Netbox Plugins
Merge requests
!26
Start testing environment
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Start testing environment
start_testing_env
into
main
Overview
0
Commits
1
Pipelines
7
Changes
10
Merged
Vincent SIMONIN
requested to merge
start_testing_env
into
main
1 year ago
Overview
0
Commits
1
Pipelines
7
Changes
10
Expand
Add start and halt testing environment Ansible playbook
Add test CI stage
0
0
Merge request reports
Compare
main
version 6
e1930c74
1 year ago
version 5
0908a2b7
1 year ago
version 4
45b5af44
1 year ago
version 3
8b37969e
1 year ago
version 2
55326c09
1 year ago
version 1
726721e9
1 year ago
main (base)
and
latest version
latest version
cdf3e640
1 commit,
1 year ago
version 6
e1930c74
6 commits,
1 year ago
version 5
0908a2b7
5 commits,
1 year ago
version 4
45b5af44
4 commits,
1 year ago
version 3
8b37969e
3 commits,
1 year ago
version 2
55326c09
2 commits,
1 year ago
version 1
726721e9
1 commit,
1 year ago
10 files
+
120
−
31
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
10
Search (e.g. *.vue) (Ctrl+P)
ansible/deploy_on_test.yml
0 → 100644
+
34
−
0
Options
-
name
:
Deploy build for testing
hosts
:
all
tasks
:
-
name
:
Create netbox directory
ansible.builtin.file
:
path
:
"
/home/debian/netbox/{{
lookup('ansible.builtin.env','CI_PIPELINE_ID')
}}"
state
:
directory
-
name
:
Copy docker-compose file
ansible.builtin.copy
:
src
:
"
../docker-compose.yml"
dest
:
"
/home/debian/netbox/{{
lookup('ansible.builtin.env','CI_PIPELINE_ID')
}}/docker-compose.yml"
-
name
:
Copy testing docker-compose file
ansible.builtin.copy
:
src
:
"
../tests/docker-compose.test.yml"
dest
:
"
/home/debian/netbox/{{
lookup('ansible.builtin.env','CI_PIPELINE_ID')
}}/docker-compose.override.yml"
-
name
:
Copy testing env variables
ansible.builtin.copy
:
src
:
"
../tests/env"
dest
:
"
/home/debian/netbox/{{
lookup('ansible.builtin.env','CI_PIPELINE_ID')
}}/"
-
name
:
Create .env file
ansible.builtin.copy
:
dest
:
"
/home/debian/netbox/{{
lookup('ansible.builtin.env','CI_PIPELINE_ID')
}}/.env"
content
:
"
TAG={{
lookup('ansible.builtin.env','CI_COMMIT_SHORT_SHA')
}}"
-
name
:
Run `docker-compose up`
community.docker.docker_compose
:
project_src
:
"
/home/debian/netbox/{{
lookup('ansible.builtin.env','CI_PIPELINE_ID')
}}/"
state
:
present
pull
:
true
Loading