testrepo/.gitlab-ci.yml

17 lines
317 B
YAML
Raw Permalink Normal View History

2021-04-17 23:13:57 +00:00
image: docker:19.03.8
stages:
- build
variables:
IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
build:
stage: build
only:
- master
script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD https://registry.riksolo.com
- docker build . -t $IMAGE_TAG
- docker push $IMAGE_TAG