Commit 0d8f34f5 by 赖慧粮

feat(gitlabci): config

parent 533f745d
Pipeline #3970 failed with stage
in 32 minutes 56 seconds
stages:
- build
- notify
variables:
REGISTRY_PWD: "cyh@aodian123"
REGISTRY_USER: "chenyihan@1812501212048408"
REGISTRY: "registry.cn-hangzhou.aliyuncs.com"
IMAGE: "registry.cn-hangzhou.aliyuncs.com/cduan/web-vote"
build:
stage: build
before_script:
- export TAG=$CI_BUILD_REF_NAME"_"`git rev-parse --short HEAD`
- docker login --username=$REGISTRY_USER --password=$REGISTRY_PWD $REGISTRY
script:
- docker build -t $IMAGE:$TAG .
- docker push $IMAGE:$TAG
- docker rmi $IMAGE:$TAG
- echo 打包成功,镜像:$IMAGE:$TAG
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 sign in to comment