Commit 2a1fe627 authored by Carlo Landmeter's avatar Carlo Landmeter
Browse files

drone: generate dockerfiles

parent 3deeb3bd
local tags = [ 'v3.6', 'v3.7', 'v3.8', 'v3.9', 'edge' ];
local tags_armv7 = [ 'v3.9', 'edge' ];
local tags = ['v3.6', 'v3.7', 'v3.8', 'v3.9', 'edge'];
local tags_armv7 = ['v3.9', 'edge'];
local pipeline(arch, darch, tags) = {
kind: 'pipeline',
......@@ -9,6 +9,12 @@ local pipeline(arch, darch, tags) = {
arch: darch,
},
steps: [
{
name: 'dockerfiles',
image: 'alpine',
commands: ['./dockerfiles.sh'],
},
] + [
{
name: tag,
image: 'plugins/docker',
......@@ -20,7 +26,7 @@ local pipeline(arch, darch, tags) = {
from_secret: 'docker_pass',
},
repo: 'clandmeter/docker-abuild',
tags: '%s-%s' % [ std.strReplace(tag,'v',''), arch],
tags: '%s-%s' % [std.strReplace(tag, 'v', ''), arch],
dockerfile: 'Dockerfiles/%s/%s/Dockerfile' % [tag, arch],
},
}
......
......@@ -7,6 +7,11 @@ platform:
arch: amd64
steps:
- name: dockerfiles
image: alpine
commands:
- ./dockerfiles.sh
- name: v3.6
image: plugins/docker
settings:
......@@ -71,6 +76,11 @@ platform:
arch: amd64
steps:
- name: dockerfiles
image: alpine
commands:
- ./dockerfiles.sh
- name: v3.6
image: plugins/docker
settings:
......@@ -135,6 +145,11 @@ platform:
arch: arm64
steps:
- name: dockerfiles
image: alpine
commands:
- ./dockerfiles.sh
- name: v3.6
image: plugins/docker
settings:
......@@ -199,6 +214,11 @@ platform:
arch: arm
steps:
- name: dockerfiles
image: alpine
commands:
- ./dockerfiles.sh
- name: v3.6
image: plugins/docker
settings:
......@@ -263,6 +283,11 @@ platform:
arch: arm
steps:
- name: dockerfiles
image: alpine
commands:
- ./dockerfiles.sh
- name: v3.9
image: plugins/docker
settings:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment