-
Andrew Kapuscinski authored
- Added PATH_PREFIX variable to build stage to handle dockerfiles at paths other than /services - removed .unit-test template from .gitlab-ci.yml because it was duplicated
Andrew Kapuscinski authored- Added PATH_PREFIX variable to build stage to handle dockerfiles at paths other than /services - removed .unit-test template from .gitlab-ci.yml because it was duplicated
push.template.yml 396 B
# Push Images Template
.push:
script:
- echo "$HARBOR_PASSWORD" | docker login -u "$HARBOR_USER" --password-stdin $REGISTRY_URL
- NAME="${REGISTRY_URL}/${PROJECT_NAME}/${SERVICE_NAME}"
- docker push ${NAME}:${CI_COMMIT_SHORT_SHA}
- docker push ${NAME}:${CI_DEFAULT_BRANCH}
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
when: always