TASK: Add own docker image
This commit is contained in:
parent
8291de0995
commit
18495e17bc
2 changed files with 32 additions and 2 deletions
|
@ -1,12 +1,30 @@
|
|||
stages:
|
||||
- build
|
||||
- test
|
||||
|
||||
build:image:
|
||||
image: docker:git
|
||||
stage: build
|
||||
services:
|
||||
- docker:dind
|
||||
script:
|
||||
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN registry.gitlab.com
|
||||
- docker build -t registry.gitlab.com/danielsiepmann/neotags .
|
||||
- docker push registry.gitlab.com/neotags/neotags:latest
|
||||
only:
|
||||
- master
|
||||
|
||||
lint:coding-guideline:
|
||||
image: python:3-alpine
|
||||
image: 'registry.gitlab.com/danielsiepmann/neotags:latest'
|
||||
stage: test
|
||||
before_script:
|
||||
- pip install pep8
|
||||
script:
|
||||
- pep8 .
|
||||
|
||||
test:
|
||||
image: python:3-alpine
|
||||
image: 'registry.gitlab.com/danielsiepmann/neotags:latest'
|
||||
stage: test
|
||||
before_script:
|
||||
- apk add --no-cache gcc
|
||||
- pip install neovim
|
||||
|
|
12
Dockerfile
Normal file
12
Dockerfile
Normal file
|
@ -0,0 +1,12 @@
|
|||
FROM alpine:3.5
|
||||
|
||||
MAINTAINER Daniel Siepmann
|
||||
LABEL Description="This image should provide environment to lint neotags" Vendor="DanielSiepmann" Version="1.0"
|
||||
|
||||
RUN apk update && apk upgrade
|
||||
|
||||
# Install dependencies
|
||||
RUN apk add python3 py-pip
|
||||
|
||||
# Clean APK cache
|
||||
RUN rm -rf /var/cache/apk/*
|
Loading…
Reference in a new issue