Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dotnet-cicd-demo
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
eoc-group
dotnet-cicd-demo
Commits
c5517c93
Commit
c5517c93
authored
Aug 18, 2025
by
shipengwei
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of git.aipark.com:eoc-group/dotnet-cicd-demo
parents
a1033ba5
d643a10c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
6 deletions
+25
-6
.gitlab-ci.yml
.gitlab-ci.yml
+25
-6
No files found.
.gitlab-ci.yml
View file @
c5517c93
...
...
@@ -11,25 +11,44 @@ services:
-
docker:dind
before_script
:
-
echo $CI_REGISTRY_USER
-
echo $CI_REGISTRY_IMAGE
-
echo "$CI_REGISTRY_PASSWORD" | docker login --username 'tcr$eoc' --password-stdin $CI_REGISTRY
build-init
:
stage
:
build
script
:
-
FULLVERSION=$BASE_VERSION.$(date +"%y%m%d%H%M")
-
export FULLVERSION
-
echo $FULLVERSION
-
echo $CI_REGISTRY_IMAGE
artifacts
:
paths
:
[
FULLVERSION
]
-
REGISTRY_IMAGE=$CI_REGISTRY_IMAGE:$FULLVERSION
-
echo "$CI_REGISTRY_PASSWORD" | docker login --username 'tcr$eoc' --password-stdin $CI_REGISTRY
build-master
:
build-master-x86
:
stage
:
build
script
:
-
docker build -t $CI_REGISTRY_IMAGE:$FULLVERSION-amd64 . --pull -f Dockerfile --platform linux/amd64
-
docker push $CI_REGISTRY_IMAGE:$FULLVERSION-amd64
only
:
-
master
tags
:
-
amd64
build-master-arm64
:
stage
:
build
script
:
-
docker build -t $CI_REGISTRY_IMAGE:$FULLVERSION-arm64 . --pull -f Dockerfile --platform linux/arm64
-
docker push $CI_REGISTRY_IMAGE:$FULLVERSION-arm64
only
:
-
master
tags
:
-
arm64
build-manifest
:
stage
:
build
needs
:
-
build-master-amd64
-
build-master-arm64
script
:
-
docker manifest create $CI_REGISTRY_IMAGE:$FULLVERSION $CI_REGISTRY_IMAGE:$FULLVERSION-amd64 $CI_REGISTRY_IMAGE:$FULLVERSION-arm64
-
docker manifest push $CI_REGISTRY_IMAGE:$FULLVERSION
only
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment