Compare commits
No commits in common. "2e114d4070b3ae482dc87043ab6aa744482893d2" and "96e47681e7f4dee8121e8ce45e24aaa1aeef42cb" have entirely different histories.
2e114d4070
...
96e47681e7
24
.drone.yml
24
.drone.yml
@ -234,30 +234,6 @@ steps:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- docker_build
|
- docker_build
|
||||||
- frontend_docker_build
|
- frontend_docker_build
|
||||||
- name: push_acr
|
|
||||||
image: docker:latest
|
|
||||||
pull: false
|
|
||||||
volumes:
|
|
||||||
- name: docker_sock
|
|
||||||
path: /var/run/docker.sock
|
|
||||||
environment:
|
|
||||||
ACR_USER:
|
|
||||||
from_secret: aliyun_acr_username # 阿里云访问凭证用户名
|
|
||||||
ACR_PASS:
|
|
||||||
from_secret: aliyun_acr_password # 阿里云访问凭证密码
|
|
||||||
ACR_REGISTRY: registry.cn-beijing.aliyuncs.com/yinzy/cicd
|
|
||||||
ACR_NAMESPACE: yinzy
|
|
||||||
commands:
|
|
||||||
- docker login $ACR_REGISTRY -u "$ACR_USER" -p "$ACR_PASS"
|
|
||||||
# 后端:将本地镜像打 tag 并推送
|
|
||||||
- docker tag ${DRONE_REPO_NAME}:latest $ACR_REGISTRY/$ACR_NAMESPACE/cicd:back-${DRONE_TAG}
|
|
||||||
- docker push $ACR_REGISTRY/$ACR_NAMESPACE/cicd:back-${DRONE_TAG}
|
|
||||||
# 前端:将本地镜像打 tag 并推送
|
|
||||||
- docker tag ${DRONE_REPO_NAME}-frontend:latest $ACR_REGISTRY/$ACR_NAMESPACE/cicd:front-${DRONE_TAG}
|
|
||||||
- docker push $ACR_REGISTRY/$ACR_NAMESPACE/cicd:front-${DRONE_TAG}
|
|
||||||
depends_on:
|
|
||||||
- docker_build
|
|
||||||
- frontend_docker_build
|
|
||||||
|
|
||||||
- name: summary
|
- name: summary
|
||||||
image: alpine
|
image: alpine
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user