Last active
June 23, 2023 03:36
-
-
Save dimMaryanto93/1f8a965d7acfb89c6bd3f57af174b57d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
variables: | |
DOCKER_VERSION: "stable" | |
DOCKER_DIND_VERSION: "18.09-dind" | |
DOCKER_CONFIG_FILE: "--config .docker" | |
push-docker: | |
stage: build | |
image: 10.55.59.13:8086/docker:${DOCKER_VERSION} | |
services: | |
- name: 10.55.59.13:8086/docker:${DOCKER_DIND_VERSION} | |
entrypoint: ["dockerd-entrypoint.sh"] | |
command: [ | |
"--insecure-registry=10.55.59.13:8087", | |
"--insecure-registry=10.55.59.13:8086" | |
] | |
alias: dockerd | |
variables: | |
DOCKER_HOST: tcp://dockerd:2375 | |
DOCKER_DRIVER: overlay2 | |
DOCKER_TLS_CERTDIR: "" | |
DOCKER_BUILD_ARGS_ENTRIPOINT: "" | |
DOCKERFILE_LOCATION: "-f Dockerfile" | |
DOCKER_TAGS: | |
10.55.59.13:8087/test/test-image | |
DOCKER_CONTEXT_PATH: "." | |
before_script: | |
- mkdir -p .docker/ && cat $DOCKER_CONF_JSON > .docker/config.json | |
script: | |
- docker build -q $DOCKERFILE_LOCATION $DOCKER_BUILD_ARGS_ENTRIPOINT -t 10.55.59.13:8087/test/test-image:latest $DOCKER_CONTEXT_PATH | |
- docker --config .docker image push 10.55.59.13:8087/test/test-image:latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"auths": { | |
"10.55.59.13:8087": { | |
"auth": "YWRtaW46bnV0YW5peC80dQ==" | |
}, "10.55.59.13:8086": { | |
"auth": "YWRtaW46bnV0YW5peC80dQ==" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment