tunasync/.gitlab-ci.yml
莫振宇 99faedf872 two_stage_rsync
add extraOptions for stage 1 in two stage rsync
add arch_exclude and arch_include support for two stage rsync
add gitlab-ci dockerfile
add dockerfile
2022-03-24 22:52:22 +08:00

22 lines
646 B
YAML

stages:
- build
build-image-job:
stage: build
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
script:
- mkdir -p /kaniko/.docker
- echo "{\"auths\":{\"${CI_REGISTRY}\":{\"auth\":\"$(printf "%s:%s" "${CI_REGISTRY_USER}" "${CI_REGISTRY_PASSWORD}" | base64 | tr -d '\n')\"}}}" > /kaniko/.docker/config.json
- >-
/kaniko/executor
--context "${CI_PROJECT_DIR}"
--dockerfile "${CI_PROJECT_DIR}/Dockerfile"
--destination "${CI_REGISTRY_IMAGE}:${CI_COMMIT_TITLE}"
--build-arg TARGETOS=linux
--build-arg TARGETARCH=amd64
--force
rules:
- if: $CI_COMMIT_TITLE