Use the Gitlab Docker Registry

This commit is contained in:
Scott Wallace 2021-12-29 15:32:17 +00:00
parent 7b4a18d795
commit 13f41e6cc7
Signed by: scott
GPG key ID: AA742FDC5AFE2A72

View file

@ -24,7 +24,9 @@ build-job: # This job runs in the build stage, which runs first.
stage: build
script:
- echo "Building the Docker image..."
- docker-compose build
- echo $CI_REGISTRY_PASSWORD | docker login -u $CI_REGISTRY_USER $CI_REGISTRY --password-stdin
- docker build -t $CI_REGISTRY_IMAGE .
- docker push $CI_REGISTRY_IMAGE
- echo "Build complete."
unit-test-job: # This job runs in the test stage.