mirror of
https://github.com/tuna/tunasync.git
synced 2025-04-21 12:52:45 +00:00
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
22 lines
646 B
YAML
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
|