ci: Merge pipelines
Some checks reported errors
continuous-integration/drone/push Build is running
continuous-integration/drone Build was killed

This commit is contained in:
Glenn Y. Rolland 2022-08-19 14:09:31 +02:00
parent b15e2e0e4c
commit 8411d10d8d

View file

@ -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: {}