Upload container to registry
This commit is contained in:
parent
2539cc3538
commit
680a545650
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue