diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c708a1c93fbe1611dbadce5fb1323a6396985b91..0b914a9b3b9fce27bc9aca1b769b8ac4b63cd8cf 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -9,7 +9,7 @@ Build alpine image: stage: build script: - echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json - - /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile.alpine --destination $CI_REGISTRY_IMAGE:alpine --destination $CI_REGISTRY_IMAGE:latest + - /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile.alpine --destination $CI_REGISTRY_IMAGE:alpine only: - master @@ -17,6 +17,6 @@ Build ubuntu image: stage: build script: - echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json - - /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile.ubuntu --destination $CI_REGISTRY_IMAGE:ubuntu + - /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile.ubuntu --destination $CI_REGISTRY_IMAGE:ubuntu --destination $CI_REGISTRY_IMAGE:latest only: - master