Commit d03aa2ee by shipengwei

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

parents 60cafb75 e4359afe
......@@ -2,7 +2,7 @@
# 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}
CI_COMMIT_REF_SLUG: ${CI_COMMIT_SHORT_SHA}
image: docker:latest
......@@ -19,3 +19,11 @@ build-master:
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
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
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