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
9dc9fcd6
Commit
9dc9fcd6
authored
Aug 15, 2025
by
shipengwei
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of git.aipark.com:eoc-group/dotnet-cicd-demo
parents
515061eb
ff159ef8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
.gitlab-ci.yml
.gitlab-ci.yml
+7
-5
No files found.
.gitlab-ci.yml
View file @
9dc9fcd6
...
...
@@ -2,7 +2,8 @@
# Official docker image.
variables
:
BASE_VERSION
:
"
1.0"
IMAGE_NAME
:
"
dotnet-cicd-demo"
USER_NAME
:
"
tcr$eoc"
CI_REGISTRY
:
"
k8s-t0.tencentcloudcr.com"
CI_REGISTRY_IMAGE
:
"
k8s-t0.tencentcloudcr.com/eoc/dotnet-cicd-demo"
image
:
docker:latest
...
...
@@ -12,11 +13,13 @@ services:
before_script
:
-
echo "$CI_REGISTRY_IMAGE"
-
echo "$CI_COMMIT_REF_SLUG"
-
FULLVERSION=$BASE_VERSION.$(date +"%y%m%d%H%M")
-
export FULLVERSION
-
echo $FULLVERSION
-
docker login -u 'tcr$eoc' -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
-
REGISTRY_IMAGE=$CI_REGISTRY_IMAGE:$FULLVERSION
-
docker login -u $USER_NAME -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
build-master-x86
:
stage
:
build
...
...
@@ -31,7 +34,7 @@ build-master-x86:
build-master-arm64
:
stage
:
build
script
:
-
docker build -
-pull -t $CI_REGISTRY_IMAGE:$FULLVERSION-arm64 .
-
docker build -
t $CI_REGISTRY_IMAGE:$FULLVERSION-arm64 . --pull -f Dockerfile --platform linux/amd64
-
docker push $CI_REGISTRY_IMAGE:$FULLVERSION-arm64
only
:
-
master
...
...
@@ -47,4 +50,3 @@ build-manifest:
-
docker manifest push $CI_REGISTRY_IMAGE:$FULLVERSION
only
:
-
master
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