Publish to container registry
This commit is contained in:
parent
dcfea61652
commit
bc454b7a37
1 changed files with 6 additions and 1 deletions
|
@ -71,5 +71,10 @@ container:
|
||||||
- build
|
- build
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
|
variables:
|
||||||
|
IMAGE_TAG: $CI_REGISTRY_IMAGE:latest
|
||||||
|
before_script:
|
||||||
|
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
|
||||||
script:
|
script:
|
||||||
- docker build -f prod/Dockerfile -t theorangeone.net .
|
- docker build -f prod/Dockerfile -t $IMAGE_TAG .
|
||||||
|
- docker push $IMAGE_TAG
|
||||||
|
|
Loading…
Reference in a new issue