Commit 65f0a9e

mo <mo.khan@gmail.com>
2019-07-23 18:56:48
try to build an image and push to the image registry
1 parent 4c93857
.gitlab-ci.yml
@@ -0,0 +1,16 @@
+services:
+  - docker:stable-dind
+
+stages:
+  - build
+
+build:
+  image: docker:stable
+  stage: build
+  variables:
+    IMAGE: $CI_REGISTRY_IMAGE/$CI_COMMIT_REF_SLUG:$CI_COMMIT_SHA
+  script:
+    - docker info
+    - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
+    - docker build -t $IMAGE
+    - docker push $IMAGE
.travis.yml
@@ -1,7 +0,0 @@
----
-sudo: false
-language: ruby
-cache: bundler
-rvm:
-  - 2.6.3
-before_install: gem install bundler -v 2.0.1
Dockerfile
@@ -0,0 +1,9 @@
+FROM ruby:alpine
+
+RUN apk add git
+RUN gem install bundler -v '~> 2.0'
+RUN mkdir -p /examine
+WORKDIR /examine
+COPY . .
+RUN bundle install --jobs "$(nproc)" --quiet
+ENTRYPOINT ["bundle", "exec", "./exe/examine"]