Skip to content
Snippets Groups Projects

Reduce docker build memory usage and rename the image

Merged Ryan Gonzalez requested to merge wip/refi64/image-build-fixes into collabora/staging
1 file
+ 12
5
Compare changes
  • Side-by-side
  • Inline
+ 12
5
@@ -14,6 +14,13 @@ aptly-image:
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
rules:
- if: $CI_COMMIT_BRANCH == 'collabora/production'
variables:
IMAGE: $CI_REGISTRY_IMAGE
- if: $CI_COMMIT_BRANCH != 'collabora/production'
variables:
IMAGE: $CI_REGISTRY_IMAGE/test
script:
- |
cat << EOF > /kaniko/.docker/config.json
@@ -30,11 +37,11 @@ aptly-image:
/kaniko/executor
--context $CI_PROJECT_DIR
--dockerfile $CI_PROJECT_DIR/docker/Dockerfile
--destination $CI_REGISTRY_IMAGE:$TAG_SHA
--destination $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
--build-arg REGISTRY=$CI_REGISTRY_IMAGE
--destination $IMAGE:$TAG_SHA
--destination $IMAGE:$CI_COMMIT_REF_SLUG
--build-arg REGISTRY=$IMAGE
--build-arg TAG=$CI_COMMIT_REF_SLUG
--build-arg APTLY_DEBUG=$APTLY_DEBUG
--compressed-caching=false
--single-snapshot
- echo Pushed $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
and $CI_REGISTRY_IMAGE:$TAG_SHA
- echo Pushed $IMAGE:$CI_COMMIT_REF_SLUG and $IMAGE:$TAG_SHA
Loading