Answer the question
In order to leave comments, you need to log in
How to deploy an artifact in a video docker image to the server in gitlab CI?
Good evening!
There is a repository in GitLab, and the following instruction is .gitlab-ci.yml
image: docker:19.03.8
stages:
- build
# https://docs.gitlab.com/ee/ci/variables/predefined_variables.html
variables:
IMAGE_TAG: $CI_REGISTRY_IMAGE:b$CI_PIPELINE_ID-$CI_COMMIT_REF_SLUG
build:
stage: build
script:
- docker build --pull -t $IMAGE_TAG .
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker push $IMAGE_TAG
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question