1
Fork 0

Publish to container registry

This commit is contained in:
Jake Howard 2022-02-25 21:57:41 +00:00
parent dcfea61652
commit bc454b7a37
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -71,5 +71,10 @@ container:
- build
only:
- master
variables:
IMAGE_TAG: $CI_REGISTRY_IMAGE:latest
before_script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
script:
- docker build -f prod/Dockerfile -t theorangeone.net .
- docker build -f prod/Dockerfile -t $IMAGE_TAG .
- docker push $IMAGE_TAG