Compare commits
2 commits
c13a89807e
...
f7258c19d1
Author | SHA1 | Date | |
---|---|---|---|
Glenn Y. Rolland | f7258c19d1 | ||
Glenn Y. Rolland | 17f2e8b3eb |
55
.drone.yml
Normal file
55
.drone.yml
Normal file
|
@ -0,0 +1,55 @@
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: default
|
||||||
|
|
||||||
|
services:
|
||||||
|
- name: docker
|
||||||
|
image: docker:dind
|
||||||
|
privileged: true
|
||||||
|
volumes:
|
||||||
|
- name: dockersock
|
||||||
|
path: /var/run
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: "build:executable"
|
||||||
|
image: crystallang/crystal:1.5.0
|
||||||
|
volumes:
|
||||||
|
- name: cache
|
||||||
|
path: /stupid
|
||||||
|
commands:
|
||||||
|
# Debug
|
||||||
|
- pwd
|
||||||
|
- crystal version
|
||||||
|
- shards version
|
||||||
|
# Build
|
||||||
|
- make build
|
||||||
|
|
||||||
|
- name: "build:docker-image:"
|
||||||
|
image: docker:20.10.16-dind
|
||||||
|
volumes:
|
||||||
|
- name: dockersock
|
||||||
|
path: /var/run
|
||||||
|
- name: cache
|
||||||
|
path: /stupid
|
||||||
|
commands:
|
||||||
|
- apk install make
|
||||||
|
- make docker-build
|
||||||
|
- make docker-save > _artifacts/docker-image.tar
|
||||||
|
|
||||||
|
- name: "publish:docker-image"
|
||||||
|
image: docker:20.10.16-dind
|
||||||
|
volumes:
|
||||||
|
- name: dockersock
|
||||||
|
path: /var/run
|
||||||
|
commands:
|
||||||
|
- apk install make
|
||||||
|
- make docker-load < _artifacts/docker-image.tar
|
||||||
|
- make docker-push
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: cache
|
||||||
|
temp: {}
|
||||||
|
- name: dockersock
|
||||||
|
temp: {}
|
||||||
|
#
|
|
@ -23,7 +23,7 @@ module Arkisto
|
||||||
|
|
||||||
@config.targets.each do |config_volume_item|
|
@config.targets.each do |config_volume_item|
|
||||||
os_volume_item =
|
os_volume_item =
|
||||||
os_volumes.select {|vol| vol.id == config_volume_item.volume_id }.first
|
os_volumes.select {|vol| vol.id == config_volume_item.volume_id }.first?
|
||||||
|
|
||||||
if os_volume_item.nil?
|
if os_volume_item.nil?
|
||||||
puts " ERROR: no volume found with this id".colorize(:red)
|
puts " ERROR: no volume found with this id".colorize(:red)
|
||||||
|
|
Loading…
Reference in a new issue