Skip to content
Snippets Groups Projects
Commit 0c1cb5f1 authored by Nicolas Lenz's avatar Nicolas Lenz :snowflake: Committed by Adrian K.
Browse files

build main branch to latest image

parent c1044538
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,17 @@ before_script:
- mkdir -p /kaniko/.docker
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
build_other:
stage: build
script:
- /kaniko/executor
--snapshotMode=redo
--context $CI_PROJECT_DIR
--dockerfile $CI_PROJECT_DIR/server-ce/Dockerfile
--destination "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG"
except:
- main
build:
stage: build
script:
......@@ -14,3 +25,6 @@ build:
--context $CI_PROJECT_DIR
--dockerfile $CI_PROJECT_DIR/server-ce/Dockerfile
--destination "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG"
--destination "$CI_REGISTRY_IMAGE:latest"
only:
- main
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment