This commit is contained in:
@@ -14,9 +14,7 @@ trigger:
|
|||||||
steps:
|
steps:
|
||||||
- name: build-and-push
|
- name: build-and-push
|
||||||
image: docker:dind
|
image: docker:dind
|
||||||
volumes:
|
privileged: true
|
||||||
- name: dockersock
|
|
||||||
path: /var/run/docker.sock
|
|
||||||
environment:
|
environment:
|
||||||
REGISTRY: harbor.seahi.me
|
REGISTRY: harbor.seahi.me
|
||||||
IMAGE_NAME: stu/versions-for-swarm
|
IMAGE_NAME: stu/versions-for-swarm
|
||||||
@@ -45,8 +43,3 @@ steps:
|
|||||||
- docker push $REGISTRY/$IMAGE_NAME:$VERSION
|
- docker push $REGISTRY/$IMAGE_NAME:$VERSION
|
||||||
- docker system prune -f
|
- docker system prune -f
|
||||||
- echo [SUCCESS] 版本 $VERSION 构建并推送成功
|
- echo [SUCCESS] 版本 $VERSION 构建并推送成功
|
||||||
|
|
||||||
volumes:
|
|
||||||
- name: dockersock
|
|
||||||
host:
|
|
||||||
path: /var/run/docker.sock
|
|
||||||
|
|||||||
Reference in New Issue
Block a user