Welcome!
This community is for professionals and enthusiasts of our products and services. Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together.
This question has been flagged
1
Reply
36
Views
Enable build for the GitLab project, disable public builds
Create Variables for:
DOCKER_DEPLOY_LOGIN_USERNAME
DOCKER_DEPLOY_LOGIN_PASSWORD
DOCKER_DEPLOY_LOGIN_URL - do not set for docker hub
create a file called: .gitlab-ci.ymlUse this template: variables: DOCKER_IMAGE_NAME: "inspiredbusiness/nginx-proxy" services: - docker:dind image: docker
Use this template:
variables:DOCKER_IMAGE_NAME: "inspiredbusiness/nginx-proxy"services:- docker:dindimage: dockerbuild_image_tag:script:- docker login -u ${DOCKER_DEPLOY_LOGIN_USERNAME} -p ${DOCKER_DEPLOY_LOGIN_PASSWORD} ${DOCKER_DEPLOY_LOGIN_URL}- docker build -t ${DOCKER_IMAGE_NAME}:${CI_BUILD_TAG} .- docker push ${DOCKER_IMAGE_NAME}:${CI_BUILD_TAG}only:- tagsbuild_image_latest:script:- docker login -u ${DOCKER_DEPLOY_LOGIN_USERNAME} -p ${DOCKER_DEPLOY_LOGIN_PASSWORD} ${DOCKER_DEPLOY_LOGIN_URL}- docker build -t ${DOCKER_IMAGE_NAME}:latest .- docker push ${DOCKER_IMAGE_NAME}:latestonly:- master
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up| Related Posts | Replies | Views | Activity | |
|---|---|---|---|---|
|
|
1
May 16
|
33 | ||
|
|
1
May 16
|
57 | ||
|
|
0
May 16
|
33 | ||
|
|
0
Jul 16
|
11 | ||
|
|
1
May 16
|
41 |