Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
R
red-ci-cd
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
red-group-test
red-ci-cd
Commits
20a94c25
Commit
20a94c25
authored
May 07, 2020
by
John Red Medrano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testing
parent
8214f01e
Pipeline
#705
failed with stage
in 48 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
10 deletions
+27
-10
.gitlab-ci.yml
.gitlab-ci.yml
+27
-10
No files found.
.gitlab-ci.yml
View file @
20a94c25
...
...
@@ -6,14 +6,31 @@ variables:
services
:
-
docker:dind
before_script
:
-
docker info
-
apk update
-
apk upgrade
-
apk add python python-dev py-pip build-base
-
pip install docker-compose
build
:
stage
:
build
# include:
# - remote: 'http://tir:Qwerty1234@54.169.104.100:27015/red/red-ci-cd/blob/dev_branch/dev_deploy.gitlab-ci.yml'
# - remote: 'http://tir:Qwerty1234@54.169.104.100:27015/red/red-ci-cd/blob/dev_branch/redeploy.gitlab-ci.yml'
stages
:
-
initial_repo
# - clean_initial_repo
# - re-deploy-dev
# - clean_re-deploy-dev
initial_repo
:
stage
:
initial_repo
before_script
:
-
pip install docker-compose
script
:
-
docker-compose -f docker-compose.test.yml build
-
echo "$CI_MERGE_REQUEST_TARGET_BRANCH_NAME"
-
echo "test"
-
cp env.new_template.ini env.ini
-
cp docker-compose.yml.template docker-compose.yml
-
cp Dockerfile.template Dockerfile
-
ls
-
docker-compose build --build-arg dev
-
docker run --name=gitlab_test_from_baseBranch -d --restart=always -p 1010:8000 product-dev python manage.py runserver 0.0.0.0:8000
# include:
# - local: dev_deploy.gitlab-ci.yml
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment