add build docker image in ci script
This commit is contained in:
parent
c03e25d647
commit
953f92711c
@ -1,28 +1,29 @@
|
|||||||
|
image: docker:stable
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- hello
|
- build
|
||||||
|
- deploy
|
||||||
|
|
||||||
|
build:
|
||||||
job1:
|
stage: build
|
||||||
stage: hello
|
|
||||||
tags:
|
tags:
|
||||||
- hottis
|
- hottis
|
||||||
- linux
|
- linux
|
||||||
- debian
|
|
||||||
- docker
|
- docker
|
||||||
script:
|
script:
|
||||||
- echo "Hallo"
|
- version=`cat VERSION`
|
||||||
- echo "Welt"
|
- echo "Version is $VERSION"
|
||||||
- whoami
|
- 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:
|
deploy:
|
||||||
stage: hello
|
stage: deploy
|
||||||
tags:
|
tags:
|
||||||
- hottis
|
- hottis
|
||||||
- linux
|
- linux
|
||||||
- debian
|
|
||||||
- docker
|
- docker
|
||||||
script:
|
script:
|
||||||
- echo "Hello"
|
- version=`cat VERSION`
|
||||||
- echo "World"
|
- echo "Version is $VERSION"
|
||||||
- whoami
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user