ci: Merge pipelines
This commit is contained in:
parent
b15e2e0e4c
commit
8411d10d8d
1 changed files with 10 additions and 28 deletions
38
.drone.yml
38
.drone.yml
|
@ -11,6 +11,14 @@ services:
|
||||||
- name: dockersock
|
- name: dockersock
|
||||||
path: /var/run
|
path: /var/run
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: crystal_cache
|
||||||
|
temp: {}
|
||||||
|
- name: docker_cache
|
||||||
|
temp: {}
|
||||||
|
- name: dockersock
|
||||||
|
temp: {}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: "build:prepare"
|
- name: "build:prepare"
|
||||||
image: busybox
|
image: busybox
|
||||||
|
@ -48,42 +56,16 @@ steps:
|
||||||
- make docker-save > _artifacts/docker-image.tar
|
- make docker-save > _artifacts/docker-image.tar
|
||||||
- make docker-save > _cache/docker-image.tar
|
- make docker-save > _cache/docker-image.tar
|
||||||
|
|
||||||
volumes:
|
|
||||||
- name: crystal_cache
|
|
||||||
temp: {}
|
|
||||||
- name: docker_cache
|
|
||||||
temp: {}
|
|
||||||
- name: dockersock
|
|
||||||
temp: {}
|
|
||||||
#
|
|
||||||
---
|
|
||||||
kind: pipeline
|
|
||||||
type: docker
|
|
||||||
name: "stage:publish"
|
|
||||||
|
|
||||||
depends_on:
|
|
||||||
- "stage:build"
|
|
||||||
|
|
||||||
services:
|
|
||||||
- name: docker
|
|
||||||
image: docker:dind
|
|
||||||
privileged: true
|
|
||||||
volumes:
|
|
||||||
- name: dockersock
|
|
||||||
path: /var/run
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: "publish:docker-image"
|
- name: "publish:docker-image"
|
||||||
image: docker:20.10.16-dind
|
image: docker:20.10.16-dind
|
||||||
volumes:
|
volumes:
|
||||||
- name: dockersock
|
- name: dockersock
|
||||||
path: /var/run
|
path: /var/run
|
||||||
commands:
|
commands:
|
||||||
|
# Prepare
|
||||||
- test -f _artifacts/docker-image.tar
|
- test -f _artifacts/docker-image.tar
|
||||||
- apk install make
|
- apk install make
|
||||||
- make docker-load < _artifacts/docker-image.tar
|
- make docker-load < _artifacts/docker-image.tar
|
||||||
|
# Build
|
||||||
- make docker-push
|
- make docker-push
|
||||||
|
|
||||||
volumes:
|
|
||||||
- name: dockersock
|
|
||||||
temp: {}
|
|
||||||
|
|
Loading…
Reference in a new issue