Commit 220d68b5 authored by mirkoschmidt's avatar mirkoschmidt

Update for coming project move

parent 4b1ce4ac
......@@ -42,11 +42,9 @@ stages:
export DEPLOY_SCRIPT_PATH=build/scripts/deploy.sh
function dockerLogin() {
if [[ -n "$CI_USER_VAR" ]]; then
echo "Logging to GitLab Container Registry with CI credentials..."
docker login -u "$CI_USER_VAR" -p "$CI_USER_PW_VAR" "$CI_REGISTRY"
echo ""
fi
echo "Logging to GitLab Container Registry with CI credentials..."
docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
echo ""
}
function buildProcess() {
echo "Building projekt in PHP 5.6 docker image..."
......
1. Docker installieren
2. Dockerfile anlegen
3. Bei Gitlab Container Registry anmelden: "sudo docker login gitlab.jtl-software.de:4567"
4. Dockerfile builden "sudo docker build --no-cache -f build/docker/DIR/Dockerfile -t gitlab.jtl-software.de:4567/jtlshop/paypal/IMAGENAME ."
5. Docker Image hochladen: "sudo docker push gitlab.jtl-software.de:4567/jtlshop/paypal/IMAGENAME"
3. Bei Gitlab Container Registry anmelden: "sudo docker login registry.gitlab.com"
4. Dockerfile builden "sudo docker build --no-cache -f build/docker/DIR/Dockerfile -t registry.gitlab.com/jtl-software/paypal/IMAGENAME ."
5. Docker Image hochladen: "sudo docker push registry.gitlab.com/jtl-software/paypal/IMAGENAME"
6. Docker image in der gitlab.yml referenzieren.
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment