Commit 5764c2ae by shipengwei

Merge branch 'master' of git.aipark.com:eoc-group/dotnet-cicd-demo

parents d03aa2ee d7a47200
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# Official docker image. # Official docker image.
variables: variables:
CI_REGISTRY_IMAGE: k8s-t0.tencentcloudcr.com/eoc/dotnet-cicd-demo CI_REGISTRY_IMAGE: k8s-t0.tencentcloudcr.com/eoc/dotnet-cicd-demo
CI_COMMIT_REF_SLUG: ${CI_COMMIT_SHORT_SHA} CI_COMMIT_REF_SLUG: $(date +%Y%m%d%H%M)
image: docker:latest image: docker:latest
...@@ -15,8 +15,8 @@ before_script: ...@@ -15,8 +15,8 @@ before_script:
build-master: build-master:
stage: build stage: build
script: script:
- docker build --pull -t $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG . - docker build --pull -t $CI_REGISTRY_IMAGE .
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG - docker push $CI_REGISTRY_IMAGE
only: only:
- master - master
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment