Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
destream-blockchain
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DeStream-public
destream-blockchain
Commits
7c9f47db
Commit
7c9f47db
authored
Mar 07, 2019
by
Anton Borisov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update .gitlab-ci.yml
parent
dd0f82e1
Pipeline
#118
failed
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
21 deletions
+7
-21
.gitlab-ci.yml
.gitlab-ci.yml
+7
-21
No files found.
.gitlab-ci.yml
View file @
7c9f47db
stages
:
-
build
-
k8s
_test
-
deploy2test_and
_tests
-
deploy_to
_test
-
run
_tests
build
:
stage
:
build
...
...
@@ -13,8 +13,8 @@ build:
DOCKER_DRIVER
:
overlay2
script
:
-
docker login -u "gitlab-ci-token" -p ${CI_JOB_TOKEN} ${CI_REGISTRY}
-
docker build -t ${CI_REGISTRY_IMAGE}:${CI_PIPELINE_ID} .
-
docker push ${CI_REGISTRY_IMAGE}:${CI_PIPELINE_ID}
-
docker build -t ${CI_REGISTRY_IMAGE}
/test
:${CI_PIPELINE_ID} .
-
docker push ${CI_REGISTRY_IMAGE}
/test
:${CI_PIPELINE_ID}
environment
:
name
:
${CI_COMMIT_REF_NAME}
url
:
https://xvideos.com
...
...
@@ -23,8 +23,8 @@ build:
tags
:
-
buidl1-dind
k8s
_test
:
stage
:
k8s
deploy_to
_test
:
stage
:
deploy_to_test
image
:
docker:stable
services
:
-
docker:dind
...
...
@@ -32,7 +32,7 @@ k8s_test:
DOCKER_HOST
:
tcp://docker:2375
DOCKER_DRIVER
:
overlay2
script
:
-
sed 's|_IMAGE_NAME_|'"${CI_REGISTRY_IMAGE}"'|g; s|_VERSION_|'"${CI_PIPELINE_ID}"'|g' app.tpl.yml > app.yml; cat app.yml
-
sed 's|_IMAGE_NAME_|'"${CI_REGISTRY_IMAGE}
/test
"'|g; s|_VERSION_|'"${CI_PIPELINE_ID}"'|g' app.tpl.yml > app.yml; cat app.yml
-
wget https://storage.googleapis.com/kubernetes-release/release/v1.13.3/bin/linux/amd64/kubectl && chmod +x ./kubectl
-
wget https://github.com/garethr/kubeval/releases/download/0.7.3/kubeval-linux-amd64.tar.gz && tar xvf kubeval-linux-amd64.tar.gz && ./kubeval app.yml
-
./kubectl apply -f app.yml
...
...
@@ -63,17 +63,3 @@ test:
-
test
tags
:
-
buidl1-dind
deploy2test
:
stage
:
deploy2test_and_tests
script
:
-
docker login -u "gitlab-ci-token" -p ${CI_JOB_TOKEN} ${CI_REGISTRY}
-
docker-compose down
-
docker-compose up -d
-
docker ps
environment
:
name
:
${CI_COMMIT_REF_NAME}
only
:
-
test
tags
:
-
test1-shell
\ No newline at end of file
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