Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
picodata
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
core
picodata
Merge requests
!67
fix ci
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
fix ci
deploy
into
master
Overview
0
Commits
5
Pipelines
1
Changes
1
Merged
Alexey Protsenko
requested to merge
deploy
into
master
3 years ago
Overview
0
Commits
5
Pipelines
1
Changes
1
Expand
Change ci to work with git.picodata.io
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
d9c28d64
5 commits,
3 years ago
1 file
+
10
−
13
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
.gitlab-ci.yml
+
10
−
13
Options
@@ -13,6 +13,8 @@ variables:
BASE_IMAGE
:
build-base:latest
CARGO_INCREMENTAL
:
0
CARGO_HOME
:
${CI_PROJECT_DIR}/.cargo
DOCKER_AUTH_CONFIG
:
$DOCKER_AUTH_RW
REGISTRY_IMAGE
:
docker-public.binary.picodata.io
#
# See also:
@@ -31,35 +33,30 @@ docker-build-base:
stage
:
prebuild
image
:
docker:20
tags
:
-
picodata
-
docker
-
dind
rules
:
-
# if
changes
:
-
docker-build-base/Dockerfile
before_script
:
-
>
echo -n ${CI_REGISTRY_PASSWORD} | docker login
-u ${CI_REGISTRY_USER}
--password-stdin
${CI_REGISTRY}
-
mkdir -p $HOME/.docker
-
echo $DOCKER_AUTH_RW > $HOME/.docker/config.json
script
:
-
docker pull ${
CI_
REGISTRY_IMAGE}/${BASE_IMAGE} ||
true
-
docker pull ${REGISTRY_IMAGE}/${BASE_IMAGE} ||
true
-
>
docker build
--pull
--label GIT_COMMIT=${CI_COMMIT_SHA}
--cache-from ${
CI_
REGISTRY_IMAGE}/${BASE_IMAGE}
-t ${
CI_
REGISTRY_IMAGE}/${BASE_IMAGE}
--cache-from ${REGISTRY_IMAGE}/${BASE_IMAGE}
-t ${REGISTRY_IMAGE}/${BASE_IMAGE}
-f ./docker-build-base/Dockerfile
./docker-build-base
-
docker push ${
CI_
REGISTRY_IMAGE}/${BASE_IMAGE}
-
docker push ${REGISTRY_IMAGE}/${BASE_IMAGE}
build
:
image
:
${
CI_
REGISTRY_IMAGE}/${BASE_IMAGE}
image
:
${REGISTRY_IMAGE}/${BASE_IMAGE}
stage
:
build
tags
:
-
picodata
-
docker
script
:
# - git submodule foreach --recursive 'git fetch --tags; git describe --always'
Loading