Commit 9cde6f04 by shipengwei

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

parents ee37764a 30e775aa
......@@ -11,21 +11,12 @@ services:
- docker:dind
before_script:
- echo "$CI_REGISTRY_PASSWORD" | docker login --username 'tcr$eoc' --password-stdin $CI_REGISTRY
build-init:
stage: build
script:
- echo "FULLVERSION=$BASE_VERSION.$(date +"%y%m%d%H%M")" > .env
- echo $CI_REGISTRY_IMAGE
artifacts:
reports:
dotenv: .env
- echo export FULLVERSION=$(date -d "$CI_COMMIT_TIMESTAMP" +"%Y%m%d%H%M%S")
- echo "$CI_REGISTRY_PASSWORD" | docker login --username 'tcr$eoc' --password-stdin $CI_REGISTRY
build-master-x86:
stage: build
dependencies:
- build-init
script:
- docker build -t $CI_REGISTRY_IMAGE:$FULLVERSION-amd64 . --pull -f Dockerfile --platform linux/amd64
- docker push $CI_REGISTRY_IMAGE:$FULLVERSION-amd64
......@@ -36,8 +27,6 @@ build-master-x86:
build-master-arm64:
stage: build
dependencies:
- build-init
script:
- docker build -t $CI_REGISTRY_IMAGE:$FULLVERSION-arm64 . --pull -f Dockerfile --platform linux/arm64
- docker push $CI_REGISTRY_IMAGE:$FULLVERSION-arm64
......
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