Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Bruce Flynn
chart-server
Commits
929d5605
Commit
929d5605
authored
Sep 28, 2018
by
Bruce Flynn
Browse files
Add CI
parent
a7420cfc
Pipeline
#4046
passed with stage
in 1 minute and 12 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
0 → 100644
View file @
929d5605
stages
:
-
build
-
test
-
push
-
deploy
before_script
:
-
docker login -u gitlab-ci-token -p ${CI_BUILD_TOKEN} ${CI_REGISTRY}
# testing is implicitly done at image build time
-
docker build -t ${CI_PROJECT_NAME} .
push_dev
:
stage
:
push
only
:
-
master
script
:
-
docker tag ${CI_PROJECT_NAME} ${CI_REGISTRY_IMAGE}:${CI_COMMIT_SHA:0:7}
-
docker push ${CI_REGISTRY_IMAGE}:${CI_COMMIT_SHA:0:7}
-
docker tag ${CI_PROJECT_NAME} ${CI_REGISTRY_IMAGE}:latest
-
docker push ${CI_REGISTRY_IMAGE}:latest
\ No newline at end of file
Write
Preview
Supports
Markdown
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