Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dashboard.panter.ch
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open-source
dashboard.panter.ch
Commits
fd6b889b
Commit
fd6b889b
authored
Jan 11, 2018
by
Gerry Gunzenhauser
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Showing
1 changed file
with
20 additions
and
7 deletions
+20
-7
.gitlab-ci.yml
.gitlab-ci.yml
+20
-7
No files found.
.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
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