Initial commit
This commit is contained in:
commit
00698d51a0
2 changed files with 28 additions and 0 deletions
19
.gitlab-ci.yml
Normal file
19
.gitlab-ci.yml
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
image: docker:latest
|
||||||
|
|
||||||
|
variables:
|
||||||
|
IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME
|
||||||
|
|
||||||
|
stages:
|
||||||
|
- build
|
||||||
|
|
||||||
|
before_script:
|
||||||
|
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
|
||||||
|
|
||||||
|
build-master:
|
||||||
|
stage: build
|
||||||
|
script:
|
||||||
|
- docker build --pull --no-cache -t $IMAGE_TAG .
|
||||||
|
- docker push $IMAGE_TAG
|
||||||
|
only:
|
||||||
|
- master
|
||||||
|
|
||||||
9
Dockerfile
Normal file
9
Dockerfile
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
FROM ruby:2.3
|
||||||
|
|
||||||
|
RUN gem install mailcatcher --no-rdoc --no-ri
|
||||||
|
|
||||||
|
# smtp (25) and ip (80) ports
|
||||||
|
EXPOSE 25 1080
|
||||||
|
|
||||||
|
CMD ["mailcatcher", "--smtp-ip=0.0.0.0", "--smtp-port=25", "--http-ip=0.0.0.0", "--http-port=1080", "-f"]
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue