Skip to content
Snippets Groups Projects

Resolve "Fix build job"

Merged Jens Heidbüchel requested to merge 7-fix-build-job into master
1 file
+ 2
0
Compare changes
  • Side-by-side
  • Inline
+ 2
0
@@ -8,6 +8,7 @@ image:
Build alpine image:
stage: build
script:
- mkdir /kaniko/.docker
- 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
only:
@@ -16,6 +17,7 @@ Build alpine image:
Build ubuntu image:
stage: build
script:
- mkdir /kaniko/.docker
- 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
only:
Loading