18 lines
514 B
YAML
18 lines
514 B
YAML
image: hub.realmanual.ru/images/docker
|
|
variables:
|
|
DOCKER_BASEIMAGE: ubuntu:18.04
|
|
DOCKER_MAINTAINER: vasyakrg@gmail.com
|
|
DOCKER_IMAGE_NAME: backup
|
|
BUILD_SCRIPT: ci/build-image/build.sh
|
|
GIT_SUBMODULE_STRATEGY: none
|
|
|
|
build:
|
|
script:
|
|
- git submodule sync
|
|
- git submodule update --init --remote --force
|
|
- export VERSION=$(cat VERSION)
|
|
- export DOCKER_IMAGE_NAME=${DOCKER_IMAGE_NAME}
|
|
- export DOCKER_IMAGE_TAG=$VERSION
|
|
- chmod +x "${BUILD_SCRIPT}" && "./${BUILD_SCRIPT}"
|
|
when: manual
|