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:
|
services:
|
||||||
- docker:dind
|
- docker:dind
|
||||||
variables:
|
variables:
|
||||||
|
IMAGE_TAG: $CI_REGISTRY_IMAGE:latest
|
||||||
DOCKER_BUILDKIT: 1
|
DOCKER_BUILDKIT: 1
|
||||||
dependencies: []
|
dependencies: []
|
||||||
stage: test
|
stage: test
|
||||||
|
before_script:
|
||||||
|
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
|
||||||
script:
|
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
|
.python_test_template: &python_test_template
|
||||||
image: python:3.10
|
image: python:3.10
|
||||||
|
|
Loading…
Reference in a new issue