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
a697d162
Commit
a697d162
authored
Aug 14, 2025
by
shipengwei
Browse files
Options
Browse Files
Download
Plain Diff
yml edit
parents
a0d151aa
9897a66e
Pipeline
#778
failed with stage
in 48 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
.gitlab-ci.yml
.gitlab-ci.yml
+30
-0
No files found.
.gitlab-ci.yml
View file @
a697d162
# This file is a template, and might need editing before it works on your project.
# Official docker image.
variables
:
CI_REGISTRY_IMAGE
:
k8s-t0.tencentcloudcr.com/eoc/dotnet-cicd-demo
CI_COMMIT_REF_SLUG
:
$(date +%Y%m%d%H%M)-${CI_COMMIT_SHORT_SHA}
image
:
docker:latest
services
:
-
docker:dind
before_script
:
-
echo "User - $CI_REGISTRY_USER Password - $CI_REGISTRY_PASSWORD"
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
build-master
:
stage
:
build
script
:
-
docker build --pull -t $CI_REGISTRY_IMAGE .
-
docker push $CI_REGISTRY_IMAGE
only
:
-
master
build
:
stage
:
build
script
:
-
docker build --pull -t $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG .
-
docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
except
:
-
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