Access Control is now enabled for Gitlab Pages so you can now restrict Pages to authorized users only. If needed, make your website publicly available : Navigate to your project's Settings > General > Visibility and select Everyone in pages section.

Commit 8550e75d authored by Jacques Supcik's avatar Jacques Supcik 💻

use Kaniko builder

parent 27859bb5
Pipeline #11619 passed with stage
in 43 seconds
image: docker:latest
stages:
- build
variables:
DOCKER_DRIVER: overlay2
DOCKER_TLS_CERTDIR: ""
DOCKER_HOST: tcp://127.0.0.1:2375
services:
- docker:dind
before_script:
- docker info
build:
build-kaniko:
stage: build
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
script:
- docker login -u $CI_DEPLOY_USER -p $CI_DEPLOY_PASSWORD $CI_REGISTRY
- docker build --pull -t registry.forge.hefr.ch/embsys/docker-se12-builder .
- docker push registry.forge.hefr.ch/embsys/docker-se12-builder
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- DESTINATION="--destination $CI_REGISTRY_IMAGE:latest"
- test "$CI_COMMIT_TAG" && DESTINATION="$DESTINATION --destination $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG"
- /kaniko/executor
--context $CI_PROJECT_DIR
--dockerfile $CI_PROJECT_DIR/Dockerfile
$DESTINATION
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment