Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
go-runtime
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
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
docker
go-runtime
Commits
bb2a34d2
Commit
bb2a34d2
authored
5 years ago
by
alex kuklin
Browse files
Options
Downloads
Patches
Plain Diff
initial
parent
466893e8
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+64
-0
64 additions, 0 deletions
.gitlab-ci.yml
with
64 additions
and
0 deletions
.gitlab-ci.yml
0 → 100644
+
64
−
0
View file @
bb2a34d2
image
:
docker:latest
services
:
-
docker:dind
stages
:
-
build
-
manifest
-
deploy
variables
:
DOCKER_CONFIG
:
~/.docker/$CI_JOB_ID
before_script
:
-
"
[
-d
$DOCKER_CONFIG
]
||
mkdir
-p
$DOCKER_CONFIG"
-
"
echo
'{
\"
experimental
\"
:
\"
enabled
\"
}'
>
$DOCKER_CONFIG/config.json"
-
docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
after_script
:
-
"
rm
-vRf
$DOCKER_CONFIG"
ppc64le
:
variables
:
IMAGE
:
$CI_REGISTRY/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME/$CI_JOB_NAME:$CI_COMMIT_REF_NAME
stage
:
build
tags
:
-
ppc64le
script
:
-
docker build --build-arg GITLAB_LOGIN=gitlab-ci-token --build-arg GITLAB_PASSWORD=$CI_JOB_TOKEN --pull -t $IMAGE -f Dockerfile .
-
docker push $IMAGE
amd64
:
variables
:
IMAGE
:
$CI_REGISTRY/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME/$CI_JOB_NAME:$CI_COMMIT_REF_NAME
stage
:
build
tags
:
-
amd64
script
:
-
docker build --build-arg GITLAB_LOGIN=gitlab-ci-token --build-arg GITLAB_PASSWORD=$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_amd64
:
$CI_REGISTRY/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME/amd64:$CI_COMMIT_REF_NAME
IMAGE_ppc64le
:
$CI_REGISTRY/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME/ppc64le:$CI_COMMIT_REF_NAME
stage
:
manifest
tags
:
-
amd64
script
:
-
docker manifest create $IMAGE $IMAGE_amd64 $IMAGE_ppc64le
-
docker manifest push $IMAGE
deploy
:
stage
:
deploy
tags
:
-
hv2
only
:
-
master
script
:
-
apk add curl
-
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.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment