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
b670b173
Commit
b670b173
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
46ea2bb2
11059ef6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
.gitlab-ci.yml
.gitlab-ci.yml
+6
-2
No files found.
.gitlab-ci.yml
View file @
b670b173
# This file is a template, and might need editing before it works on your project.
# This file is a template, and might need editing before it works on your project.
# Official docker image.
# Official docker image.
variables
:
variables
:
FullVERSION
:
"
1.0.${CI_COMMIT_TIMESTAMP}"
BASEVERSION
:
"
1.0"
CI_TIMESTAMP
:
"
$CI_COMMIT_TIMESTAMP"
CI_REGISTRY_IMAGE
:
"
k8s-t0.tencentcloudcr.com/eoc/dotnet-cicd-demo"
CI_REGISTRY_IMAGE
:
"
k8s-t0.tencentcloudcr.com/eoc/dotnet-cicd-demo"
image
:
docker:latest
image
:
docker:latest
...
@@ -12,12 +13,13 @@ services:
...
@@ -12,12 +13,13 @@ services:
before_script
:
before_script
:
-
echo $CI_REGISTRY_IMAGE
-
echo $CI_REGISTRY_IMAGE
-
echo $CI_COMMIT_REF_SLUG
-
echo $CI_COMMIT_REF_SLUG
-
echo $
FULLVERSION
-
echo $
BASEVERSION.$CI_TIMESTAMP
-
docker login -u 'tcr$eoc' -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
-
docker login -u 'tcr$eoc' -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
build-master-x86
:
build-master-x86
:
stage
:
build
stage
:
build
script
:
script
:
-
FULLVERSION=$BASEVERSION.$CI_TIMESTAMP
-
docker build -t $CI_REGISTRY_IMAGE:$FULLVERSION-amd64 . --pull -f Dockerfile --platform linux/amd64
-
docker build -t $CI_REGISTRY_IMAGE:$FULLVERSION-amd64 . --pull -f Dockerfile --platform linux/amd64
-
docker push $CI_REGISTRY_IMAGE:$FULLVERSION
-
docker push $CI_REGISTRY_IMAGE:$FULLVERSION
only
:
only
:
...
@@ -28,6 +30,7 @@ build-master-x86:
...
@@ -28,6 +30,7 @@ build-master-x86:
build-master-arm64
:
build-master-arm64
:
stage
:
build
stage
:
build
script
:
script
:
-
FULLVERSION=$BASEVERSION.$CI_TIMESTAMP
-
docker build --pull -t $CI_REGISTRY_IMAGE:$FULLVERSION-arm64 .
-
docker build --pull -t $CI_REGISTRY_IMAGE:$FULLVERSION-arm64 .
-
docker push $CI_REGISTRY_IMAGE:$FULLVERSION
-
docker push $CI_REGISTRY_IMAGE:$FULLVERSION
only
:
only
:
...
@@ -38,6 +41,7 @@ build-master-arm64:
...
@@ -38,6 +41,7 @@ build-master-arm64:
build-manifest
:
build-manifest
:
stage
:
build
stage
:
build
script
:
script
:
-
FULLVERSION=$BASEVERSION.$CI_TIMESTAMP
-
docker manifest create $CI_REGISTRY_IMAGE:$FULLVERSION
-
docker manifest create $CI_REGISTRY_IMAGE:$FULLVERSION
$CI_REGISTRY_IMAGE:$FULLVERSION-amd64
$CI_REGISTRY_IMAGE:$FULLVERSION-amd64
$CI_REGISTRY_IMAGE:$FULLVERSION-arm64
$CI_REGISTRY_IMAGE:$FULLVERSION-arm64
...
...
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