Commit fd6b889b authored by Gerry Gunzenhauser's avatar Gerry Gunzenhauser

build docker image

parent a639368e
Pipeline #12556 failed with stages
in 2 minutes and 26 seconds
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"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment