Merge branch 'dev' into 'main'

.gitlab-ci.yml fixes

See merge request oscar.krause/fastapi-dls!8
This commit is contained in:
Oscar Krause 2022-12-21 11:12:18 +01:00
commit 79c8d19b00

View File

@ -27,7 +27,7 @@ deploy:
before_script: before_script:
- echo "COMMIT=${CI_COMMIT_SHA}" >> version.env - echo "COMMIT=${CI_COMMIT_SHA}" >> version.env
- source version.env - source version.env
- Building docker image for commit "${COMMIT}" with version "${VERSION}" - echo "Building docker image for commit ${COMMIT} with version ${VERSION}"
script: script:
- docker login -u $PUBLIC_REGISTRY_USER -p $PUBLIC_REGISTRY_TOKEN - docker login -u $PUBLIC_REGISTRY_USER -p $PUBLIC_REGISTRY_TOKEN
- docker build . --tag $PUBLIC_REGISTRY_USER/${CI_PROJECT_NAME}:${VERSION} - docker build . --tag $PUBLIC_REGISTRY_USER/${CI_PROJECT_NAME}:${VERSION}