add build docker image in ci script
This commit is contained in:
parent
c03e25d647
commit
953f92711c
@ -1,28 +1,29 @@
|
||||
image: docker:stable
|
||||
|
||||
stages:
|
||||
- hello
|
||||
- build
|
||||
- deploy
|
||||
|
||||
|
||||
job1:
|
||||
stage: hello
|
||||
build:
|
||||
stage: build
|
||||
tags:
|
||||
- hottis
|
||||
- linux
|
||||
- debian
|
||||
- docker
|
||||
script:
|
||||
- echo "Hallo"
|
||||
- echo "Welt"
|
||||
- whoami
|
||||
- version=`cat VERSION`
|
||||
- echo "Version is $VERSION"
|
||||
- docker build --tag registry.gitlab.com/wolutator/homepage:latest --tag registry.gitlab.com/wolutator/homepage:$VERSION .
|
||||
- docker push registry.gitlab.com/wolutator/homepage:latest
|
||||
- docker push registry.gitlab.com/wolutator/homepage:$VERSION
|
||||
|
||||
job2:
|
||||
stage: hello
|
||||
deploy:
|
||||
stage: deploy
|
||||
tags:
|
||||
- hottis
|
||||
- linux
|
||||
- debian
|
||||
- docker
|
||||
script:
|
||||
- echo "Hello"
|
||||
- echo "World"
|
||||
- whoami
|
||||
- version=`cat VERSION`
|
||||
- echo "Version is $VERSION"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user