forked from Ivasoft/drone-docker
fix yaml
This commit is contained in:
334
.drone.yml
334
.drone.yml
@@ -37,120 +37,6 @@ trigger:
|
||||
- "refs/tags/**"
|
||||
- "refs/pull/**"
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
type: ssh
|
||||
name: windows-1809
|
||||
|
||||
platform:
|
||||
os: windows
|
||||
|
||||
server:
|
||||
host: windows.1809.amd64.plugins.drone.ci
|
||||
password:
|
||||
from_secret: windows_password
|
||||
user:
|
||||
from_secret: windows_username
|
||||
|
||||
steps:
|
||||
- name: build-docker
|
||||
commands:
|
||||
- go build -o release/windows/amd64/drone-docker.exe ./cmd/drone-docker
|
||||
- docker login -u $env:USERNAME -p $env:PASSWORD
|
||||
- |
|
||||
$tag="windows-1809-amd64"
|
||||
if (Test-Path env:DRONE_SEMVER_SHORT) {
|
||||
$tag="$env:DRONE_SEMVER_SHORT-windows-1809-amd64"
|
||||
}
|
||||
docker build -f docker/docker/Dockerfile.windows.1809 -t plugins/docker:$tag .
|
||||
docker push plugins/docker:$tag
|
||||
environment:
|
||||
CGO_ENABLED: "0"
|
||||
USERNAME:
|
||||
from_secret: docker_username
|
||||
PASSWORD:
|
||||
from_secret: docker_password
|
||||
|
||||
- name: build-gcr
|
||||
commands:
|
||||
- go build -o release/windows/amd64/drone-gcr.exe ./cmd/drone-gcr
|
||||
- docker login -u $env:USERNAME -p $env:PASSWORD
|
||||
- |
|
||||
$tag="windows-1809-amd64"
|
||||
if (Test-Path env:DRONE_SEMVER_SHORT) {
|
||||
$tag="$env:DRONE_SEMVER_SHORT-windows-1809-amd64"
|
||||
}
|
||||
docker build -f docker/gcr/Dockerfile.windows.1809 -t plugins/gcr:$tag .
|
||||
docker push plugins/gcr:$tag
|
||||
environment:
|
||||
CGO_ENABLED: "0"
|
||||
USERNAME:
|
||||
from_secret: docker_username
|
||||
PASSWORD:
|
||||
from_secret: docker_password
|
||||
|
||||
- name: build-ecr
|
||||
commands:
|
||||
- go build -o release/windows/amd64/drone-ecr.exe ./cmd/drone-ecr
|
||||
- docker login -u $env:USERNAME -p $env:PASSWORD
|
||||
- |
|
||||
$tag="windows-1809-amd64"
|
||||
if (Test-Path env:DRONE_SEMVER_SHORT) {
|
||||
$tag="$env:DRONE_SEMVER_SHORT-windows-1809-amd64"
|
||||
}
|
||||
docker build -f docker/ecr/Dockerfile.windows.1809 -t plugins/ecr:$tag .
|
||||
docker push plugins/ecr:$tag
|
||||
environment:
|
||||
CGO_ENABLED: "0"
|
||||
USERNAME:
|
||||
from_secret: docker_username
|
||||
PASSWORD:
|
||||
from_secret: docker_password
|
||||
|
||||
- name: build-acr
|
||||
commands:
|
||||
- go build -o release/windows/amd64/drone-acr.exe ./cmd/drone-acr
|
||||
- docker login -u $env:USERNAME -p $env:PASSWORD
|
||||
- |
|
||||
$tag="windows-1809-amd64"
|
||||
if (Test-Path env:DRONE_SEMVER_SHORT) {
|
||||
$tag="$env:DRONE_SEMVER_SHORT-windows-1809-amd64"
|
||||
}
|
||||
docker build -f docker/acr/Dockerfile.windows.1809 -t plugins/acr:$tag .
|
||||
docker push plugins/acr:$tag
|
||||
environment:
|
||||
CGO_ENABLED: "0"
|
||||
USERNAME:
|
||||
from_secret: docker_username
|
||||
PASSWORD:
|
||||
from_secret: docker_password
|
||||
|
||||
- name: build-heroku
|
||||
commands:
|
||||
- go build -o release/windows/amd64/drone-heroku.exe ./cmd/drone-heroku
|
||||
- docker login -u $env:USERNAME -p $env:PASSWORD
|
||||
- |
|
||||
$tag="windows-1809-amd64"
|
||||
if (Test-Path env:DRONE_SEMVER_SHORT) {
|
||||
$tag="$env:DRONE_SEMVER_SHORT-windows-1809-amd64"
|
||||
}
|
||||
docker build -f docker/heroku/Dockerfile.windows.1809 -t plugins/heroku:$tag .
|
||||
docker push plugins/heroku:$tag
|
||||
environment:
|
||||
CGO_ENABLED: "0"
|
||||
USERNAME:
|
||||
from_secret: docker_username
|
||||
PASSWORD:
|
||||
from_secret: docker_password
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- push
|
||||
- tag
|
||||
|
||||
depends_on:
|
||||
- testing
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
type: ssh
|
||||
@@ -239,17 +125,191 @@ steps:
|
||||
PASSWORD:
|
||||
from_secret: docker_password
|
||||
|
||||
- name: build-heroku
|
||||
trigger:
|
||||
event:
|
||||
- push
|
||||
- tag
|
||||
|
||||
depends_on:
|
||||
- testing
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
type: ssh
|
||||
name: windows-1809
|
||||
|
||||
platform:
|
||||
os: windows
|
||||
|
||||
server:
|
||||
host: windows.1809.amd64.plugins.drone.ci
|
||||
password:
|
||||
from_secret: windows_password
|
||||
user:
|
||||
from_secret: windows_username
|
||||
|
||||
steps:
|
||||
- name: build-docker
|
||||
commands:
|
||||
- go build -o release/windows/amd64/drone-heroku.exe ./cmd/drone-heroku
|
||||
- go build -o release/windows/amd64/drone-docker.exe ./cmd/drone-docker
|
||||
- docker login -u $env:USERNAME -p $env:PASSWORD
|
||||
- |
|
||||
$tag="windows-1803-amd64"
|
||||
$tag="windows-1809-amd64"
|
||||
if (Test-Path env:DRONE_SEMVER_SHORT) {
|
||||
$tag="$env:DRONE_SEMVER_SHORT-windows-1803-amd64"
|
||||
$tag="$env:DRONE_SEMVER_SHORT-windows-1809-amd64"
|
||||
}
|
||||
docker build -f docker/heroku/Dockerfile.windows.1803 -t plugins/heroku:$tag .
|
||||
docker push plugins/heroku:$tag
|
||||
docker build -f docker/docker/Dockerfile.windows.1809 -t plugins/docker:$tag .
|
||||
docker push plugins/docker:$tag
|
||||
environment:
|
||||
CGO_ENABLED: "0"
|
||||
USERNAME:
|
||||
from_secret: docker_username
|
||||
PASSWORD:
|
||||
from_secret: docker_password
|
||||
|
||||
- name: build-gcr
|
||||
commands:
|
||||
- go build -o release/windows/amd64/drone-gcr.exe ./cmd/drone-gcr
|
||||
- docker login -u $env:USERNAME -p $env:PASSWORD
|
||||
- |
|
||||
$tag="windows-1809-amd64"
|
||||
if (Test-Path env:DRONE_SEMVER_SHORT) {
|
||||
$tag="$env:DRONE_SEMVER_SHORT-windows-1809-amd64"
|
||||
}
|
||||
docker build -f docker/gcr/Dockerfile.windows.1809 -t plugins/gcr:$tag .
|
||||
docker push plugins/gcr:$tag
|
||||
environment:
|
||||
CGO_ENABLED: "0"
|
||||
USERNAME:
|
||||
from_secret: docker_username
|
||||
PASSWORD:
|
||||
from_secret: docker_password
|
||||
|
||||
- name: build-ecr
|
||||
commands:
|
||||
- go build -o release/windows/amd64/drone-ecr.exe ./cmd/drone-ecr
|
||||
- docker login -u $env:USERNAME -p $env:PASSWORD
|
||||
- |
|
||||
$tag="windows-1809-amd64"
|
||||
if (Test-Path env:DRONE_SEMVER_SHORT) {
|
||||
$tag="$env:DRONE_SEMVER_SHORT-windows-1809-amd64"
|
||||
}
|
||||
docker build -f docker/ecr/Dockerfile.windows.1809 -t plugins/ecr:$tag .
|
||||
docker push plugins/ecr:$tag
|
||||
environment:
|
||||
CGO_ENABLED: "0"
|
||||
USERNAME:
|
||||
from_secret: docker_username
|
||||
PASSWORD:
|
||||
from_secret: docker_password
|
||||
|
||||
- name: build-acr
|
||||
commands:
|
||||
- go build -o release/windows/amd64/drone-acr.exe ./cmd/drone-acr
|
||||
- docker login -u $env:USERNAME -p $env:PASSWORD
|
||||
- |
|
||||
$tag="windows-1809-amd64"
|
||||
if (Test-Path env:DRONE_SEMVER_SHORT) {
|
||||
$tag="$env:DRONE_SEMVER_SHORT-windows-1809-amd64"
|
||||
}
|
||||
docker build -f docker/acr/Dockerfile.windows.1809 -t plugins/acr:$tag .
|
||||
docker push plugins/acr:$tag
|
||||
environment:
|
||||
CGO_ENABLED: "0"
|
||||
USERNAME:
|
||||
from_secret: docker_username
|
||||
PASSWORD:
|
||||
from_secret: docker_password
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- push
|
||||
- tag
|
||||
|
||||
depends_on:
|
||||
- testing
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
type: ssh
|
||||
name: windows-1903
|
||||
|
||||
platform:
|
||||
os: windows
|
||||
|
||||
server:
|
||||
host: windows.1903.amd64.plugins.drone.ci
|
||||
password:
|
||||
from_secret: windows_password
|
||||
user:
|
||||
from_secret: windows_username
|
||||
|
||||
steps:
|
||||
- name: build-docker
|
||||
commands:
|
||||
- go build -o release/windows/amd64/drone-docker.exe ./cmd/drone-docker
|
||||
- docker login -u $env:USERNAME -p $env:PASSWORD
|
||||
- |
|
||||
$tag="windows-1903-amd64"
|
||||
if (Test-Path env:DRONE_SEMVER_SHORT) {
|
||||
$tag="$env:DRONE_SEMVER_SHORT-windows-1903-amd64"
|
||||
}
|
||||
docker build -f docker/docker/Dockerfile.windows.1903 -t plugins/docker:$tag .
|
||||
docker push plugins/docker:$tag
|
||||
environment:
|
||||
CGO_ENABLED: "0"
|
||||
USERNAME:
|
||||
from_secret: docker_username
|
||||
PASSWORD:
|
||||
from_secret: docker_password
|
||||
|
||||
- name: build-gcr
|
||||
commands:
|
||||
- go build -o release/windows/amd64/drone-gcr.exe ./cmd/drone-gcr
|
||||
- docker login -u $env:USERNAME -p $env:PASSWORD
|
||||
- |
|
||||
$tag="windows-1903-amd64"
|
||||
if (Test-Path env:DRONE_SEMVER_SHORT) {
|
||||
$tag="$env:DRONE_SEMVER_SHORT-windows-1903-amd64"
|
||||
}
|
||||
docker build -f docker/gcr/Dockerfile.windows.1903 -t plugins/gcr:$tag .
|
||||
docker push plugins/gcr:$tag
|
||||
environment:
|
||||
CGO_ENABLED: "0"
|
||||
USERNAME:
|
||||
from_secret: docker_username
|
||||
PASSWORD:
|
||||
from_secret: docker_password
|
||||
|
||||
- name: build-ecr
|
||||
commands:
|
||||
- go build -o release/windows/amd64/drone-ecr.exe ./cmd/drone-ecr
|
||||
- docker login -u $env:USERNAME -p $env:PASSWORD
|
||||
- |
|
||||
$tag="windows-1903-amd64"
|
||||
if (Test-Path env:DRONE_SEMVER_SHORT) {
|
||||
$tag="$env:DRONE_SEMVER_SHORT-windows-1903-amd64"
|
||||
}
|
||||
docker build -f docker/ecr/Dockerfile.windows.1903 -t plugins/ecr:$tag .
|
||||
docker push plugins/ecr:$tag
|
||||
environment:
|
||||
CGO_ENABLED: "0"
|
||||
USERNAME:
|
||||
from_secret: docker_username
|
||||
PASSWORD:
|
||||
from_secret: docker_password
|
||||
|
||||
- name: build-acr
|
||||
commands:
|
||||
- go build -o release/windows/amd64/drone-acr.exe ./cmd/drone-acr
|
||||
- docker login -u $env:USERNAME -p $env:PASSWORD
|
||||
- |
|
||||
$tag="windows-1903-amd64"
|
||||
if (Test-Path env:DRONE_SEMVER_SHORT) {
|
||||
$tag="$env:DRONE_SEMVER_SHORT-windows-1903-amd64"
|
||||
}
|
||||
docker build -f docker/acr/Dockerfile.windows.1903 -t plugins/acr:$tag .
|
||||
docker push plugins/acr:$tag
|
||||
environment:
|
||||
CGO_ENABLED: "0"
|
||||
USERNAME:
|
||||
@@ -353,25 +413,6 @@ steps:
|
||||
PASSWORD:
|
||||
from_secret: docker_password
|
||||
|
||||
- name: build-heroku
|
||||
commands:
|
||||
- go build -o release/windows/amd64/drone-heroku.exe ./cmd/drone-heroku
|
||||
- docker login -u $env:USERNAME -p $env:PASSWORD
|
||||
- |
|
||||
$tag="windows-1909-amd64"
|
||||
if (Test-Path env:DRONE_SEMVER_SHORT) {
|
||||
$tag="$env:DRONE_SEMVER_SHORT-windows-1909-amd64"
|
||||
}
|
||||
docker build -f docker/heroku/Dockerfile.windows.1909 -t plugins/heroku:$tag .
|
||||
docker push plugins/heroku:$tag
|
||||
environment:
|
||||
CGO_ENABLED: "0"
|
||||
USERNAME:
|
||||
from_secret: docker_username
|
||||
PASSWORD:
|
||||
from_secret: docker_password
|
||||
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- push
|
||||
@@ -595,8 +636,9 @@ trigger:
|
||||
- "refs/tags/**"
|
||||
|
||||
depends_on:
|
||||
- windows-1809
|
||||
- windows-1803
|
||||
- windows-1809
|
||||
- windows-1903
|
||||
- windows-1909
|
||||
- linux-amd64-docker
|
||||
- linux-arm64-docker
|
||||
@@ -802,8 +844,9 @@ trigger:
|
||||
- "refs/tags/**"
|
||||
|
||||
depends_on:
|
||||
- windows-1809
|
||||
- windows-1803
|
||||
- windows-1809
|
||||
- windows-1903
|
||||
- windows-1909
|
||||
- linux-amd64-gcr
|
||||
- linux-arm64-gcr
|
||||
@@ -1009,8 +1052,9 @@ trigger:
|
||||
- "refs/tags/**"
|
||||
|
||||
depends_on:
|
||||
- windows-1809
|
||||
- windows-1803
|
||||
- windows-1809
|
||||
- windows-1903
|
||||
- windows-1909
|
||||
- linux-amd64-ecr
|
||||
- linux-arm64-ecr
|
||||
@@ -1216,9 +1260,6 @@ trigger:
|
||||
- "refs/tags/**"
|
||||
|
||||
depends_on:
|
||||
- windows-1809
|
||||
- windows-1803
|
||||
- windows-1909
|
||||
- linux-amd64-heroku
|
||||
- linux-arm64-heroku
|
||||
- linux-arm-heroku
|
||||
@@ -1422,8 +1463,9 @@ trigger:
|
||||
- "refs/tags/**"
|
||||
|
||||
depends_on:
|
||||
- windows-1809
|
||||
- windows-1803
|
||||
- windows-1809
|
||||
- windows-1903
|
||||
- windows-1909
|
||||
- linux-amd64-acr
|
||||
- linux-arm64-acr
|
||||
|
||||
10
docker/acr/Dockerfile.windows.1903
Normal file
10
docker/acr/Dockerfile.windows.1903
Normal file
@@ -0,0 +1,10 @@
|
||||
# escape=`
|
||||
FROM plugins/docker:windows-1903
|
||||
|
||||
LABEL maintainer="Drone.IO Community <drone-dev@googlegroups.com>" `
|
||||
org.label-schema.name="Drone ACR" `
|
||||
org.label-schema.vendor="Drone.IO Community" `
|
||||
org.label-schema.schema-version="1.0"
|
||||
|
||||
ADD release/windows/amd64/drone-acr.exe C:/bin/drone-acr.exe
|
||||
ENTRYPOINT [ "C:\\bin\\drone-acr.exe" ]
|
||||
10
docker/acr/Dockerfile.windows.1909
Normal file
10
docker/acr/Dockerfile.windows.1909
Normal file
@@ -0,0 +1,10 @@
|
||||
# escape=`
|
||||
FROM plugins/docker:windows-1909
|
||||
|
||||
LABEL maintainer="Drone.IO Community <drone-dev@googlegroups.com>" `
|
||||
org.label-schema.name="Drone ACR" `
|
||||
org.label-schema.vendor="Drone.IO Community" `
|
||||
org.label-schema.schema-version="1.0"
|
||||
|
||||
ADD release/windows/amd64/drone-acr.exe C:/bin/drone-acr.exe
|
||||
ENTRYPOINT [ "C:\\bin\\drone-acr.exe" ]
|
||||
@@ -24,14 +24,26 @@ manifests:
|
||||
os: linux
|
||||
variant: v7
|
||||
-
|
||||
image: plugins/acr:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}windows-1803
|
||||
image: plugins/acr:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}windows-1803-amd64
|
||||
platform:
|
||||
architecture: amd64
|
||||
os: windows
|
||||
version: 1803
|
||||
-
|
||||
image: plugins/acr:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}windows-1809
|
||||
image: plugins/acr:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}windows-1809-amd64
|
||||
platform:
|
||||
architecture: amd64
|
||||
os: windows
|
||||
version: 1809
|
||||
-
|
||||
image: plugins/acr:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}windows-1903-amd64
|
||||
platform:
|
||||
architecture: amd64
|
||||
os: windows
|
||||
version: 1903
|
||||
-
|
||||
image: plugins/acr:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}windows-1909-amd64
|
||||
platform:
|
||||
architecture: amd64
|
||||
os: windows
|
||||
version: 1909
|
||||
|
||||
@@ -24,7 +24,7 @@ manifests:
|
||||
os: linux
|
||||
variant: v7
|
||||
-
|
||||
image: plugins/docker:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}windows-1803
|
||||
image: plugins/docker:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}windows-1803-amd64
|
||||
platform:
|
||||
architecture: amd64
|
||||
os: windows
|
||||
|
||||
10
docker/ecr/Dockerfile.windows.1903
Normal file
10
docker/ecr/Dockerfile.windows.1903
Normal file
@@ -0,0 +1,10 @@
|
||||
# escape=`
|
||||
FROM plugins/docker:windows-1903
|
||||
|
||||
LABEL maintainer="Drone.IO Community <drone-dev@googlegroups.com>" `
|
||||
org.label-schema.name="Drone ECR" `
|
||||
org.label-schema.vendor="Drone.IO Community" `
|
||||
org.label-schema.schema-version="1.0"
|
||||
|
||||
ADD release/windows/amd64/drone-ecr.exe C:/bin/drone-ecr.exe
|
||||
ENTRYPOINT [ "C:\\bin\\drone-ecr.exe" ]
|
||||
10
docker/ecr/Dockerfile.windows.1909
Normal file
10
docker/ecr/Dockerfile.windows.1909
Normal file
@@ -0,0 +1,10 @@
|
||||
# escape=`
|
||||
FROM plugins/docker:windows-1909
|
||||
|
||||
LABEL maintainer="Drone.IO Community <drone-dev@googlegroups.com>" `
|
||||
org.label-schema.name="Drone ECR" `
|
||||
org.label-schema.vendor="Drone.IO Community" `
|
||||
org.label-schema.schema-version="1.0"
|
||||
|
||||
ADD release/windows/amd64/drone-ecr.exe C:/bin/drone-ecr.exe
|
||||
ENTRYPOINT [ "C:\\bin\\drone-ecr.exe" ]
|
||||
@@ -35,3 +35,15 @@ manifests:
|
||||
architecture: amd64
|
||||
os: windows
|
||||
version: 1809
|
||||
-
|
||||
image: plugins/ecr:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}windows-1903
|
||||
platform:
|
||||
architecture: amd64
|
||||
os: windows
|
||||
version: 1903
|
||||
-
|
||||
image: plugins/ecr:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}windows-1909
|
||||
platform:
|
||||
architecture: amd64
|
||||
os: windows
|
||||
version: 1909
|
||||
|
||||
10
docker/gcr/Dockerfile.windows.1903
Normal file
10
docker/gcr/Dockerfile.windows.1903
Normal file
@@ -0,0 +1,10 @@
|
||||
# escape=`
|
||||
FROM plugins/docker:windows-1903
|
||||
|
||||
LABEL maintainer="Drone.IO Community <drone-dev@googlegroups.com>" `
|
||||
org.label-schema.name="Drone GCR" `
|
||||
org.label-schema.vendor="Drone.IO Community" `
|
||||
org.label-schema.schema-version="1.0"
|
||||
|
||||
ADD release/windows/amd64/drone-gcr.exe C:/bin/drone-gcr.exe
|
||||
ENTRYPOINT [ "C:\\bin\\drone-gcr.exe" ]
|
||||
10
docker/gcr/Dockerfile.windows.1909
Normal file
10
docker/gcr/Dockerfile.windows.1909
Normal file
@@ -0,0 +1,10 @@
|
||||
# escape=`
|
||||
FROM plugins/docker:windows-1909
|
||||
|
||||
LABEL maintainer="Drone.IO Community <drone-dev@googlegroups.com>" `
|
||||
org.label-schema.name="Drone GCR" `
|
||||
org.label-schema.vendor="Drone.IO Community" `
|
||||
org.label-schema.schema-version="1.0"
|
||||
|
||||
ADD release/windows/amd64/drone-gcr.exe C:/bin/drone-gcr.exe
|
||||
ENTRYPOINT [ "C:\\bin\\drone-gcr.exe" ]
|
||||
@@ -35,3 +35,15 @@ manifests:
|
||||
architecture: amd64
|
||||
os: windows
|
||||
version: 1809
|
||||
-
|
||||
image: plugins/gcr:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}windows-1903
|
||||
platform:
|
||||
architecture: amd64
|
||||
os: windows
|
||||
version: 1803
|
||||
-
|
||||
image: plugins/gcr:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}windows-1909
|
||||
platform:
|
||||
architecture: amd64
|
||||
os: windows
|
||||
version: 1809
|
||||
|
||||
Reference in New Issue
Block a user