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
4b56427d
Commit
4b56427d
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
c23cc91b
917ce29e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
.gitlab-ci.yml
.gitlab-ci.yml
+3
-3
No files found.
.gitlab-ci.yml
View file @
4b56427d
...
@@ -13,13 +13,13 @@ before_script:
...
@@ -13,13 +13,13 @@ before_script:
-
export TZ=Asia/Shanghai
-
export TZ=Asia/Shanghai
-
echo $CI_REGISTRY_IMAGE
-
echo $CI_REGISTRY_IMAGE
# 使用当前小时时间和提交SHA值来构建,因为公司的GitLab10.0版本太低不支持提交时间,另外还得考虑ARM\X86双平台,同时我不会任务间传参,所以凑合这么写吧
# 使用当前小时时间和提交SHA值来构建,因为公司的GitLab10.0版本太低不支持提交时间,另外还得考虑ARM\X86双平台,同时我不会任务间传参,所以凑合这么写吧
-
export FULLVERSION=$BASE_VERSION.$(date +"%
Y
%m%d%H")-${CI_COMMIT_SHA:0:7}
-
export FULLVERSION=$BASE_VERSION.$(date +"%
y
%m%d%H")-${CI_COMMIT_SHA:0:7}
-
echo $FULLVERSION
-
echo $FULLVERSION
-
echo "$CI_REGISTRY_PASSWORD" | docker login --username 'tcr$eoc' --password-stdin $CI_REGISTRY
-
echo "$CI_REGISTRY_PASSWORD" | docker login --username 'tcr$eoc' --password-stdin $CI_REGISTRY
stages
:
stages
:
-
build
-
build
-
deploy
-
manifest
build-master-x86
:
build-master-x86
:
stage
:
build
stage
:
build
...
@@ -42,7 +42,7 @@ build-master-arm64:
...
@@ -42,7 +42,7 @@ build-master-arm64:
-
arm64
-
arm64
build-manifest
:
build-manifest
:
stage
:
deploy
stage
:
manifest
script
:
script
:
-
docker manifest create $CI_REGISTRY_IMAGE:$FULLVERSION $CI_REGISTRY_IMAGE:$FULLVERSION-amd64 $CI_REGISTRY_IMAGE:$FULLVERSION-arm64
-
docker manifest create $CI_REGISTRY_IMAGE:$FULLVERSION $CI_REGISTRY_IMAGE:$FULLVERSION-amd64 $CI_REGISTRY_IMAGE:$FULLVERSION-arm64
-
docker manifest push $CI_REGISTRY_IMAGE:$FULLVERSION
-
docker manifest push $CI_REGISTRY_IMAGE:$FULLVERSION
...
...
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