This commit is contained in:
Wolfgang Hottgenroth 2020-03-26 23:22:00 +01:00
parent a582b1f685
commit 6c93b7ec19
No known key found for this signature in database
GPG Key ID: 656C88C7C1734267
3 changed files with 25 additions and 0 deletions

2
.gitignore vendored Normal file

@ -0,0 +1,2 @@
*~
.*~

22
.gitlab-ci.yml Normal file

@ -0,0 +1,22 @@
image: docker:stable
stages:
- build
variables:
IMAGE_NAME: registry.gitlab.com/wolutator/cobol-docker
build:
stage: build
tags:
- hottis
- linux
- docker
script:
- VERSION=`cat VERSION`
- echo "Version is $VERSION"
- docker build --tag $IMAGE_NAME:latest --tag $IMAGE_NAME:$VERSION .
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
- docker push $IMAGE_NAME:latest
- docker push $IMAGE_NAME:$VERSION

1
VERSION Normal file

@ -0,0 +1 @@
0.0.1