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
|
||||
path: /var/run
|
||||
|
||||
volumes:
|
||||
- name: crystal_cache
|
||||
temp: {}
|
||||
- name: docker_cache
|
||||
temp: {}
|
||||
- name: dockersock
|
||||
temp: {}
|
||||
|
||||
steps:
|
||||
- name: "build:prepare"
|
||||
image: busybox
|
||||
|
@ -48,42 +56,16 @@ steps:
|
|||
- make docker-save > _artifacts/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"
|
||||
image: docker:20.10.16-dind
|
||||
volumes:
|
||||
- name: dockersock
|
||||
path: /var/run
|
||||
commands:
|
||||
# Prepare
|
||||
- test -f _artifacts/docker-image.tar
|
||||
- apk install make
|
||||
- make docker-load < _artifacts/docker-image.tar
|
||||
# Build
|
||||
- make docker-push
|
||||
|
||||
volumes:
|
||||
- name: dockersock
|
||||
temp: {}
|
||||
|
|
Loading…
Reference in a new issue