Upload container to registry

This commit is contained in:
Jake Howard 2022-08-25 14:27:14 +01:00
parent 2539cc3538
commit 680a545650
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -45,11 +45,15 @@ container:
services:
- docker:dind
variables:
IMAGE_TAG: $CI_REGISTRY_IMAGE:latest
DOCKER_BUILDKIT: 1
dependencies: []
stage: test
before_script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
script:
- docker build -t website --target production .
- docker build -t website --target production -t $IMAGE_TAG .
- docker push $IMAGE_TAG
.python_test_template: &python_test_template
image: python:3.10