Commit 5d76bfce by shipengwei

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

parents d29bb94a 4634a18d
......@@ -13,18 +13,27 @@ before_script:
- echo $CI_COMMIT_REF_SLUG
- docker login -u 'tcr$eoc' -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
build-master:
build-master-x86:
stage: build
script:
- docker build --pull -t $CI_REGISTRY_IMAGE .
- docker push $CI_REGISTRY_IMAGE
- docker build --pull -t $CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA-$RUNNER_ARCH .
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA-$RUNNER_ARCH
only:
- master
parallel:
matrix:
- RUNNER_TAG: "linux-x86"
RUNNER_ARCH: "x86_64"
- RUNNER_TAG: "linux-arm"
RUNNER_ARCH: "aarch64"
tags:
- $RUNNER_TAG
build:
stage: build
script:
- docker build --pull -t $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG .
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
#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
\ No newline at end of file
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