Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
dashboard.panter.ch
Commits
fd6b889b
Commit
fd6b889b
authored
Jan 11, 2018
by
Gerry Gunzenhauser
Browse files
build docker image
parent
a639368e
Pipeline
#12556
failed with stages
in 2 minutes and 26 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
fd6b889b
image
:
node:carbon
stages
:
-
test
-
build
-
pack
cache
:
paths
:
-
node_modules/
...
...
@@ -17,14 +22,22 @@ lint-css:
script
:
-
yarn lint:css
pages
:
stage
:
deploy
build
:
stage
:
build
script
:
-
rm -rf build ||
true
-
yarn build:app
-
rm -rf public
-
mv build public
artifacts
:
paths
:
-
public
only
:
-
master
-
build
docker-image
:
stage
:
pack
image
:
docker:latest
services
:
-
docker:dind
script
:
-
export DOCKER_HOST="tcp://0.0.0.0:2375"
-
docker build -t "$CI_REGISTRY_IMAGE:$CI_BUILD_REF_SLUG" .
-
docker login -u gitlab-ci-token -p "$CI_BUILD_TOKEN" "$CI_REGISTRY"
-
docker push "$CI_REGISTRY_IMAGE:$CI_BUILD_REF_SLUG"
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment