Skip to content
Snippets Groups Projects

Added SWET to the container and switched to kaniko

Merged Ostermayer, Markus requested to merge include_swet_use_kaniko into main
2 files
+ 14
10
Compare changes
  • Side-by-side
  • Inline

Files

+ 9
9
image: docker:20.10.10
stages:
 
- build
build-image:
build-image:
stage: build
stage: build
variables:
image:
IMAGE_NAME: "os-sweb-image"
name: gcr.io/kaniko-project/executor:v1.9.0-debug
IMAGE_TAG: $CI_REGISTRY_IMAGE/$IMAGE_NAME:latest
services:
- docker:20.10.10-dind
script:
script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- /kaniko/executor
- docker build -t $IMAGE_TAG .
--context "${CI_PROJECT_DIR}"
- docker push $IMAGE_TAG
--dockerfile "Dockerfile"
 
--destination "${CI_REGISTRY_IMAGE}:latest"
 
--build-arg CI_TOKEN=${CI_JOB_TOKEN}
rules:
rules:
- if: $CI_COMMIT_BRANCH == "main"
- if: $CI_COMMIT_BRANCH == "main"
changes:
changes:
Loading