Commit 8d8c38de by zhaoshun.hou

Update .gitlab-ci.yml

parent 69f6fb9f
Pipeline #2017 passed with stages
in 2 minutes 11 seconds
stages: stages:
- package - package
- build - build
- push
- deplay - deplay
variables: variables:
...@@ -40,13 +39,6 @@ build_image: ...@@ -40,13 +39,6 @@ build_image:
- pwd; ls -lh ; df -h ; - pwd; ls -lh ; df -h ;
- docker run -i --network host --rm amazon/aws-cli ecr get-login-password --region cn-north-1 | docker login --username AWS --password-stdin ${REG_BASE} - docker run -i --network host --rm amazon/aws-cli ecr get-login-password --region cn-north-1 | docker login --username AWS --password-stdin ${REG_BASE}
- docker build -t ${REG_URL}:${CI_COMMIT_SHA} . - docker build -t ${REG_URL}:${CI_COMMIT_SHA} .
tags:
- mobdna-k8s
push_image:
stage: push
script:
- docker run -i --network host --rm amazon/aws-cli ecr get-login-password --region cn-north-1 | docker login --username AWS --password-stdin ${REG_BASE}
- docker push ${REG_URL}:${CI_COMMIT_SHA} - docker push ${REG_URL}:${CI_COMMIT_SHA}
tags: tags:
- mobdna-k8s - mobdna-k8s
......
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