Compare commits
No commits in common. "76d3787be9ad4ea1db25092267f4cb31f6a45906" and "55a876e5350849d1678ec42ab060a7ca6172cee1" have entirely different histories.
76d3787be9
...
55a876e535
@ -1,10 +1,6 @@
|
||||
local pipeline(os, arch) = {
|
||||
kind: "pipeline",
|
||||
name: os + "/" + arch,
|
||||
platform: {
|
||||
"os": os,
|
||||
"arch": arch,
|
||||
},
|
||||
name: "build " + os + "/" + arch,
|
||||
steps: [{
|
||||
name: "compile " + os + "/" + arch,
|
||||
image: "golang:1.15.6-alpine3.12",
|
||||
@ -38,7 +34,7 @@ local pipeline(os, arch) = {
|
||||
username: { "from_secret": "docker_username" },
|
||||
password: { "from_secret": "docker_password" },
|
||||
auto_tag: true,
|
||||
auto_tag_suffix: os + "-" + arch
|
||||
//auto_tag_suffix: os + "-" + arch
|
||||
},
|
||||
when: {
|
||||
event: "tag"
|
||||
@ -47,32 +43,10 @@ local pipeline(os, arch) = {
|
||||
],
|
||||
};
|
||||
|
||||
local manifest() = {
|
||||
kind: "pipeline",
|
||||
type: "docker",
|
||||
name: "manifest",
|
||||
depends_on: ["linux/arm64", "linux/amd64"],
|
||||
when: {
|
||||
event: "tag"
|
||||
},
|
||||
|
||||
steps: [
|
||||
{
|
||||
name: "publish",
|
||||
image: "plugins/manifest",
|
||||
settings: {
|
||||
auto_tag: true,
|
||||
ignore_missing: true,
|
||||
spec: "manifest.yml",
|
||||
username: { "from_secret": "docker_username" },
|
||||
password: { "from_secret": "docker_password" },
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
[
|
||||
pipeline("linux", "amd64"),
|
||||
pipeline("linux", "arm64"),
|
||||
manifest()
|
||||
// pipeline("linux", "arm64"),
|
||||
// pipeline("darwin", "amd64"),
|
||||
// pipeline("darwin", "arm64"),
|
||||
// pipeline("windows", "amd64"),
|
||||
]
|
@ -1,4 +1,4 @@
|
||||
FROM alpine
|
||||
FROM alpine:3.12.3
|
||||
WORKDIR /opt/
|
||||
|
||||
ADD ./release/*/*/ubnt-freifunk-map-api /opt/ubnt-freifunk-map-api
|
||||
|
19
manifest.yml
19
manifest.yml
@ -1,19 +0,0 @@
|
||||
image: fftdf/ffmap-ubnt-api:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}}
|
||||
{{#if build.tags}}
|
||||
tags:
|
||||
- "latest"
|
||||
{{#each build.tags}}
|
||||
- {{this}}
|
||||
{{/each}}
|
||||
{{/if}}
|
||||
manifests:
|
||||
-
|
||||
image: fftdf/ffmap-ubnt-api:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-amd64
|
||||
platform:
|
||||
architecture: amd64
|
||||
os: linux
|
||||
-
|
||||
image: fftdf/ffmap-ubnt-api:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-arm64
|
||||
platform:
|
||||
architecture: arm64
|
||||
os: linux
|
Loading…
Reference in New Issue
Block a user