Combine PROD and DEV images
This commit is contained in:
+1
-15
@@ -45,20 +45,6 @@ remark:
|
||||
script:
|
||||
- npm run remark
|
||||
|
||||
# TODO: remove
|
||||
publish_dev:
|
||||
stage: publish
|
||||
image: docker:stable
|
||||
services:
|
||||
- docker:stable-dind
|
||||
only:
|
||||
- develop
|
||||
script:
|
||||
- docker info
|
||||
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
|
||||
- docker build . -t "$IMAGE_NAME_DEV"
|
||||
- docker push "$IMAGE_NAME_DEV"
|
||||
|
||||
publish:
|
||||
stage: publish
|
||||
image: docker:stable
|
||||
@@ -69,7 +55,7 @@ publish:
|
||||
script:
|
||||
- docker info
|
||||
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
|
||||
- docker build . -f Dockerfile.prod -t "$IMAGE_NAME"
|
||||
- docker build . -t "$IMAGE_NAME"
|
||||
- docker push "$IMAGE_NAME"
|
||||
|
||||
deploy_dev:
|
||||
|
||||
Reference in New Issue
Block a user