Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
K
key-storage-agent
Manage
Activity
Members
Labels
Plan
Issues
2
Issue boards
Milestones
Wiki
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Code
key-storage-agent
Compare revisions
613d346f5c60843429f7cbbe5c02d065e45697dd to 21f2ab6590758716bf43ed0b6deb877116e6e91d
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
code/key-storage-agent
Select target project
No results found
21f2ab6590758716bf43ed0b6deb877116e6e91d
Select Git revision
Swap
Target
code/key-storage-agent
Select target project
code/key-storage-agent
1 result
613d346f5c60843429f7cbbe5c02d065e45697dd
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (2)
Update .gitlab-ci.yml
· 97562d6e
Alexander Kulikov
authored
6 years ago
97562d6e
Merge branch '106-devops' into 'master'
· 21f2ab65
Alexey Kuklin
authored
6 years ago
multiarch See merge request
!36
21f2ab65
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+41
-22
41 additions, 22 deletions
.gitlab-ci.yml
with
41 additions
and
22 deletions
.gitlab-ci.yml
View file @
21f2ab65
image
:
docker
image
:
docker:latest
services
:
-
docker:dind
stages
:
-
build
-
manifest
-
deploy
variables
:
TEST_IMAGE
:
registry.vereign.com/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME:$CI_COMMIT_REF_NAME
TEST_IMAGE_SHA
:
registry.vereign.com/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME:$CI_COMMIT_SHA
RELEASE_IMAGE
:
registry.vereign.com/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME:latest
build
:
before_script
:
-
"
[
-d
~/.docker
]
||
mkdir
~/.docker"
-
"
echo
'{
\"
experimental
\"
:
\"
enabled
\"
}'
>
~/.docker/config.json"
-
docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
ppc64le
:
variables
:
IMAGE
:
$CI_REGISTRY/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME/$CI_JOB_NAME:$CI_COMMIT_REF_NAME
IMAGE_SHA
:
$CI_REGISTRY/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME/$CI_JOB_NAME:$CI_COMMIT_SHA
stage
:
build
tags
:
-
hv2
services
:
-
docker:dind
before_script
:
-
docker login -u gitlab-ci-token -p $CI_JOB_TOKEN registry.vereign.com
-
ppc64le
script
:
-
docker build --build-arg CI_COMMIT_SHA=$CI_COMMIT_SHA --build-arg CI_COMMIT_REF_NAME=$CI_COMMIT_REF_NAME --build-arg CI_PROJECT_NAME=$CI_PROJECT_NAME --build-arg CI_JOB_TOKEN=$CI_JOB_TOKEN --pull -t $
TEST_
IMAGE -f Dockerfile .
-
docker push $
TEST_
IMAGE
-
docker build --build-arg CI_COMMIT_SHA=$CI_COMMIT_SHA --build-arg CI_COMMIT_REF_NAME=$CI_COMMIT_REF_NAME --build-arg CI_PROJECT_NAME=$CI_PROJECT_NAME --build-arg CI_JOB_TOKEN=$CI_JOB_TOKEN --pull -t $IMAGE -f Dockerfile .
-
docker push $IMAGE
build-x86
:
amd64
:
variables
:
IMAGE
:
$CI_REGISTRY/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME/$CI_JOB_NAME:$CI_COMMIT_REF_NAME
IMAGE_SHA
:
$CI_REGISTRY/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME/$CI_JOB_NAME:$CI_COMMIT_SHA
stage
:
build
tags
:
-
dell
services
:
-
docker:dind
before_script
:
-
docker login -u gitlab-ci-token -p $CI_JOB_TOKEN registry.vereign.com
-
amd64
script
:
-
docker build --build-arg CI_COMMIT_SHA=$CI_COMMIT_SHA --build-arg CI_COMMIT_REF_NAME=$CI_COMMIT_REF_NAME --build-arg CI_PROJECT_NAME=$CI_PROJECT_NAME --build-arg CI_JOB_TOKEN=$CI_JOB_TOKEN --pull -t $
TEST_
IMAGE
-x86
-f Dockerfile
-x86
.
-
docker push $
TEST_
IMAGE
-x86
-
docker build --build-arg CI_COMMIT_SHA=$CI_COMMIT_SHA --build-arg CI_COMMIT_REF_NAME=$CI_COMMIT_REF_NAME --build-arg CI_PROJECT_NAME=$CI_PROJECT_NAME --build-arg CI_JOB_TOKEN=$CI_JOB_TOKEN --pull -t $IMAGE -f Dockerfile .
-
docker push $IMAGE
manifest
:
variables
:
IMAGE
:
$CI_REGISTRY/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME:$CI_COMMIT_REF_NAME
IMAGE_SHA
:
$CI_REGISTRY/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME:$CI_COMMIT_SHA
IMAGE_amd64
:
$CI_REGISTRY/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME/amd64:$CI_COMMIT_REF_NAME
IMAGE_SHA_amd64
:
$CI_REGISTRY/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME/amd64:$CI_COMMIT_SHA
IMAGE_ppc64le
:
$CI_REGISTRY/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME/ppc64le:$CI_COMMIT_REF_NAME
IMAGE_SHA_ppc64le
:
$CI_REGISTRY/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME/ppc64le:$CI_COMMIT_SHA
stage
:
manifest
tags
:
-
amd64
script
:
-
docker manifest create $IMAGE $IMAGE_amd64 $IMAGE_ppc64le
-
docker manifest push $IMAGE
deploy
:
stage
:
deploy
tags
:
...
...
@@ -38,4 +57,4 @@ deploy:
-
master
script
:
-
apk add curl
-
curl -X POST -F token=$TRIGGER_TOKEN -F ref=
integration2
-F variables[branch]=master https://code.vereign.com/api/v4/projects/59/trigger/pipeline
-
for ref in $DEPLOYENVS; do
curl -X POST -F token=$TRIGGER_TOKEN -F ref=
$ref
-F variables[branch]=master https://code.vereign.com/api/v4/projects/59/trigger/pipeline
; done
This diff is collapsed.
Click to expand it.