Commit ee37764a by shipengwei

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

parents eca51ceb f107bc8c
...@@ -25,7 +25,7 @@ build-init: ...@@ -25,7 +25,7 @@ build-init:
build-master-x86: build-master-x86:
stage: build stage: build
dependencies: dependencies:
- build-init - build-init
script: script:
- docker build -t $CI_REGISTRY_IMAGE:$FULLVERSION-amd64 . --pull -f Dockerfile --platform linux/amd64 - docker build -t $CI_REGISTRY_IMAGE:$FULLVERSION-amd64 . --pull -f Dockerfile --platform linux/amd64
- docker push $CI_REGISTRY_IMAGE:$FULLVERSION-amd64 - docker push $CI_REGISTRY_IMAGE:$FULLVERSION-amd64
...@@ -37,7 +37,7 @@ build-master-x86: ...@@ -37,7 +37,7 @@ build-master-x86:
build-master-arm64: build-master-arm64:
stage: build stage: build
dependencies: dependencies:
- build-init - build-init
script: script:
- docker build -t $CI_REGISTRY_IMAGE:$FULLVERSION-arm64 . --pull -f Dockerfile --platform linux/arm64 - docker build -t $CI_REGISTRY_IMAGE:$FULLVERSION-arm64 . --pull -f Dockerfile --platform linux/arm64
- docker push $CI_REGISTRY_IMAGE:$FULLVERSION-arm64 - docker push $CI_REGISTRY_IMAGE:$FULLVERSION-arm64
...@@ -49,8 +49,8 @@ build-master-arm64: ...@@ -49,8 +49,8 @@ build-master-arm64:
build-manifest: build-manifest:
stage: build stage: build
dependencies: dependencies:
- build-master-x86 - build-master-x86
- build-master-arm64 - build-master-arm64
script: script:
- docker manifest create $CI_REGISTRY_IMAGE:$FULLVERSION $CI_REGISTRY_IMAGE:$FULLVERSION-amd64 $CI_REGISTRY_IMAGE:$FULLVERSION-arm64 - docker manifest create $CI_REGISTRY_IMAGE:$FULLVERSION $CI_REGISTRY_IMAGE:$FULLVERSION-amd64 $CI_REGISTRY_IMAGE:$FULLVERSION-arm64
- docker manifest push $CI_REGISTRY_IMAGE:$FULLVERSION - docker manifest push $CI_REGISTRY_IMAGE:$FULLVERSION
......
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