From e6289388c467b683c88ab6e2c580ee7719c87c5a Mon Sep 17 00:00:00 2001 From: Thomas Boerger Date: Mon, 21 Jan 2019 01:05:01 +0100 Subject: [PATCH] Fix duplicated step names --- .drone.jsonnet | 303 +++-------------------- .drone.windows.yml | 184 ++++++++------ .drone.yml | 593 ++++++++++++++++++++++++++++++--------------- 3 files changed, 552 insertions(+), 528 deletions(-) diff --git a/.drone.jsonnet b/.drone.jsonnet index 537f831..6f7c1ad 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -34,16 +34,16 @@ local PipelineTesting = { }, }; -local PipelineBuild(os="linux", arch="amd64") = { +local PipelineBuild(binary="docker", os="linux", arch="amd64") = { kind: "pipeline", - name: os + "-" + arch, + name: os + "-" + arch + "-" + binary, platform: { os: os, arch: arch, }, steps: [ { - name: "build-docker", + name: "build-push", image: "golang:1.11", pull: "always", environment: { @@ -51,14 +51,14 @@ local PipelineBuild(os="linux", arch="amd64") = { GO111MODULE: "on", }, commands: [ - "go build -v -ldflags \"-X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/" + os + "/" + arch + "/drone-docker ./cmd/drone-docker", + "go build -v -ldflags \"-X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/" + os + "/" + arch + "/drone-" + binary + " ./cmd/drone-" + binary, ], when: { event: [ "push", "pull_request" ], }, }, { - name: "build-docker", + name: "build-tag", image: "golang:1.11", pull: "always", environment: { @@ -66,21 +66,21 @@ local PipelineBuild(os="linux", arch="amd64") = { GO111MODULE: "on", }, commands: [ - "go build -v -ldflags \"-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/" + os + "/" + arch + "/drone-docker ./cmd/drone-docker", + "go build -v -ldflags \"-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/" + os + "/" + arch + "/drone-" + binary + " ./cmd/drone-" + binary, ], when: { event: [ "tag" ], }, }, { - name: "dryrun-docker", + name: "dryrun", image: "plugins/docker:" + os + "-" + arch, pull: "always", settings: { dry_run: true, tags: os + "-" + arch, - dockerfile: "docker/docker/Dockerfile." + os + "." + arch, - repo: "plugins/docker", + dockerfile: "docker/" + binary + "/Dockerfile." + os + "." + arch, + repo: "plugins/" + binary, username: { "from_secret": "docker_username" }, password: { "from_secret": "docker_password" }, }, @@ -89,14 +89,14 @@ local PipelineBuild(os="linux", arch="amd64") = { }, }, { - name: "publish-docker", + name: "publish", image: "plugins/docker:" + os + "-" + arch, pull: "always", settings: { auto_tag: true, auto_tag_suffix: os + "-" + arch, - dockerfile: "docker/docker/Dockerfile." + os + "." + arch, - repo: "plugins/docker", + dockerfile: "docker/" + binary + "/Dockerfile." + os + "." + arch, + repo: "plugins/" + binary, username: { "from_secret": "docker_username" }, password: { "from_secret": "docker_password" }, }, @@ -104,192 +104,6 @@ local PipelineBuild(os="linux", arch="amd64") = { event: [ "push", "tag" ], }, }, - { - name: "build-heroku", - image: "golang:1.11", - pull: "always", - environment: { - CGO_ENABLED: "0", - GO111MODULE: "on", - }, - commands: [ - "go build -v -ldflags \"-X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/" + os + "/" + arch + "/drone-heroku ./cmd/drone-heroku", - ], - when: { - event: [ "push", "pull_request" ], - }, - }, - { - name: "build-heroku", - image: "golang:1.11", - pull: "always", - environment: { - CGO_ENABLED: "0", - GO111MODULE: "on", - }, - commands: [ - "go build -v -ldflags \"-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/" + os + "/" + arch + "/drone-heroku ./cmd/drone-heroku", - ], - when: { - event: [ "tag" ], - }, - }, - { - name: "dryrun-heroku", - image: "plugins/docker:" + os + "-" + arch, - pull: "always", - settings: { - dry_run: true, - tags: os + "-" + arch, - herokufile: "docker/heroku/Dockerfile." + os + "." + arch, - repo: "plugins/heroku", - username: { "from_secret": "heroku_username" }, - password: { "from_secret": "heroku_password" }, - }, - when: { - event: [ "pull_request" ], - }, - }, - { - name: "publish-heroku", - image: "plugins/docker:" + os + "-" + arch, - pull: "always", - settings: { - auto_tag: true, - auto_tag_suffix: os + "-" + arch, - herokufile: "docker/heroku/Dockerfile." + os + "." + arch, - repo: "plugins/heroku", - username: { "from_secret": "heroku_username" }, - password: { "from_secret": "heroku_password" }, - }, - when: { - event: [ "push", "tag" ], - }, - }, - { - name: "build-gcr", - image: "golang:1.11", - pull: "always", - environment: { - CGO_ENABLED: "0", - GO111MODULE: "on", - }, - commands: [ - "go build -v -ldflags \"-X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/" + os + "/" + arch + "/drone-gcr ./cmd/drone-gcr", - ], - when: { - event: [ "push", "pull_request" ], - }, - }, - { - name: "build-gcr", - image: "golang:1.11", - pull: "always", - environment: { - CGO_ENABLED: "0", - GO111MODULE: "on", - }, - commands: [ - "go build -v -ldflags \"-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/" + os + "/" + arch + "/drone-gcr ./cmd/drone-gcr", - ], - when: { - event: [ "tag" ], - }, - }, - { - name: "dryrun-gcr", - image: "plugins/docker:" + os + "-" + arch, - pull: "always", - settings: { - dry_run: true, - tags: os + "-" + arch, - gcrfile: "docker/gcr/Dockerfile." + os + "." + arch, - repo: "plugins/gcr", - username: { "from_secret": "gcr_username" }, - password: { "from_secret": "gcr_password" }, - }, - when: { - event: [ "pull_request" ], - }, - }, - { - name: "publish-gcr", - image: "plugins/docker:" + os + "-" + arch, - pull: "always", - settings: { - auto_tag: true, - auto_tag_suffix: os + "-" + arch, - gcrfile: "docker/gcr/Dockerfile." + os + "." + arch, - repo: "plugins/gcr", - username: { "from_secret": "gcr_username" }, - password: { "from_secret": "gcr_password" }, - }, - when: { - event: [ "push", "tag" ], - }, - }, - { - name: "build-ecr", - image: "golang:1.11", - pull: "always", - environment: { - CGO_ENABLED: "0", - GO111MODULE: "on", - }, - commands: [ - "go build -v -ldflags \"-X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/" + os + "/" + arch + "/drone-ecr ./cmd/drone-ecr", - ], - when: { - event: [ "push", "pull_request" ], - }, - }, - { - name: "build-ecr", - image: "golang:1.11", - pull: "always", - environment: { - CGO_ENABLED: "0", - GO111MODULE: "on", - }, - commands: [ - "go build -v -ldflags \"-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/" + os + "/" + arch + "/drone-ecr ./cmd/drone-ecr", - ], - when: { - event: [ "tag" ], - }, - }, - { - name: "dryrun-ecr", - image: "plugins/docker:" + os + "-" + arch, - pull: "always", - settings: { - dry_run: true, - tags: os + "-" + arch, - dockerfile: "docker/ecr/Dockerfile." + os + "." + arch, - repo: "plugins/ecr", - username: { "from_secret": "ecr_username" }, - password: { "from_secret": "ecr_password" }, - }, - when: { - event: [ "pull_request" ], - }, - }, - { - name: "publish-ecr", - image: "plugins/docker:" + os + "-" + arch, - pull: "always", - settings: { - auto_tag: true, - auto_tag_suffix: os + "-" + arch, - dockerfile: "docker/ecr/Dockerfile." + os + "." + arch, - repo: "plugins/ecr", - username: { "from_secret": "ecr_username" }, - password: { "from_secret": "ecr_password" }, - }, - when: { - event: [ "push", "tag" ], - }, - }, ], depends_on: [ "testing", @@ -299,95 +113,38 @@ local PipelineBuild(os="linux", arch="amd64") = { }, }; -local PipelineNotifications = { +local PipelineNotifications(binary="docker") = { kind: "pipeline", - name: "notifications", + name: "notifications-" + binary, platform: { os: "linux", arch: "amd64", }, steps: [ { - name: "manifest-docker", + name: "manifest", image: "plugins/manifest:1", pull: "always", settings: { username: { "from_secret": "docker_username" }, password: { "from_secret": "docker_password" }, - spec: "docker/docker/manifest.tmpl", + spec: "docker/" + binary + "/manifest.tmpl", ignore_missing: true, }, }, { - name: "microbadger-docker", + name: "microbadger", image: "plugins/webhook:1", pull: "always", settings: { url: { "from_secret": "microbadger_docker" }, }, }, - { - name: "manifest-heroku", - image: "plugins/manifest:1", - pull: "always", - settings: { - username: { "from_secret": "heroku_username" }, - password: { "from_secret": "heroku_password" }, - spec: "docker/heroku/manifest.tmpl", - ignore_missing: true, - }, - }, - { - name: "microbadger-heroku", - image: "plugins/webhook:1", - pull: "always", - settings: { - url: { "from_secret": "microbadger_heroku" }, - }, - }, - { - name: "manifest-gcr", - image: "plugins/manifest:1", - pull: "always", - settings: { - username: { "from_secret": "gcr_username" }, - password: { "from_secret": "gcr_password" }, - spec: "docker/gcr/manifest.tmpl", - ignore_missing: true, - }, - }, - { - name: "microbadger-gcr", - image: "plugins/webhook:1", - pull: "always", - settings: { - url: { "from_secret": "microbadger_gcr" }, - }, - }, - { - name: "manifest-ecr", - image: "plugins/manifest:1", - pull: "always", - settings: { - username: { "from_secret": "ecr_username" }, - password: { "from_secret": "ecr_password" }, - spec: "docker/ecr/manifest.tmpl", - ignore_missing: true, - }, - }, - { - name: "microbadger-ecr", - image: "plugins/webhook:1", - pull: "always", - settings: { - url: { "from_secret": "microbadger_ecr" }, - }, - }, ], depends_on: [ - "linux-amd64", - "linux-arm64", - "linux-arm", + "linux-amd64-" + binary, + "linux-arm64-" + binary, + "linux-arm-" + binary, ], trigger: { branch: [ "master" ], @@ -397,8 +154,20 @@ local PipelineNotifications = { [ PipelineTesting, - PipelineBuild("linux", "amd64"), - PipelineBuild("linux", "arm64"), - PipelineBuild("linux", "arm"), - PipelineNotifications, + PipelineBuild("docker", "linux", "amd64"), + PipelineBuild("docker", "linux", "arm64"), + PipelineBuild("docker", "linux", "arm"), + PipelineBuild("gcr", "linux", "amd64"), + PipelineBuild("gcr", "linux", "arm64"), + PipelineBuild("gcr", "linux", "arm"), + PipelineBuild("ecr", "linux", "amd64"), + PipelineBuild("ecr", "linux", "arm64"), + PipelineBuild("ecr", "linux", "arm"), + PipelineBuild("heroku", "linux", "amd64"), + PipelineBuild("heroku", "linux", "arm64"), + PipelineBuild("heroku", "linux", "arm"), + PipelineNotifications("docker"), + PipelineNotifications("gcr"), + PipelineNotifications("ecr"), + PipelineNotifications("heroku"), ] diff --git a/.drone.windows.yml b/.drone.windows.yml index ec704cc..0d6099c 100644 --- a/.drone.windows.yml +++ b/.drone.windows.yml @@ -1,17 +1,17 @@ --- kind: pipeline -name: linux-amd64 +name: windows-amd64-docker platform: - os: linux + os: windows arch: amd64 steps: -- name: build-docker +- name: build-push pull: always image: golang:1.11 commands: - - "go build -v -ldflags \"-X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/linux/amd64/drone-docker ./cmd/drone-docker" + - "go build -v -ldflags \"-X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/windows/amd64/drone-docker ./cmd/drone-docker" environment: CGO_ENABLED: 0 GO111MODULE: on @@ -20,11 +20,11 @@ steps: - push - pull_request -- name: build-docker +- name: build-tag pull: always image: golang:1.11 commands: - - "go build -v -ldflags \"-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/linux/amd64/drone-docker ./cmd/drone-docker" + - "go build -v -ldflags \"-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/windows/amd64/drone-docker ./cmd/drone-docker" environment: CGO_ENABLED: 0 GO111MODULE: on @@ -32,29 +32,29 @@ steps: event: - tag -- name: dryrun-docker +- name: dryrun pull: always - image: plugins/docker:linux-amd64 + image: plugins/docker:windows-amd64 settings: - dockerfile: docker/docker/Dockerfile.linux.amd64 + dockerfile: docker/docker/Dockerfile.windows.amd64 dry_run: true password: from_secret: docker_password repo: plugins/docker - tags: linux-amd64 + tags: windows-amd64 username: from_secret: docker_username when: event: - pull_request -- name: publish-docker +- name: publish pull: always - image: plugins/docker:linux-amd64 + image: plugins/docker:windows-amd64 settings: auto_tag: true - auto_tag_suffix: linux-amd64 - dockerfile: docker/docker/Dockerfile.linux.amd64 + auto_tag_suffix: windows-amd64 + dockerfile: docker/docker/Dockerfile.windows.amd64 password: from_secret: docker_password repo: plugins/docker @@ -65,11 +65,24 @@ steps: - push - tag -- name: build-heroku +trigger: + branch: + - master + +--- +kind: pipeline +name: windows-amd64-gcr + +platform: + os: windows + arch: amd64 + +steps: +- name: build-push pull: always image: golang:1.11 commands: - - "go build -v -ldflags \"-X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/linux/amd64/drone-heroku ./cmd/drone-heroku" + - "go build -v -ldflags \"-X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/windows/amd64/drone-gcr ./cmd/drone-gcr" environment: CGO_ENABLED: 0 GO111MODULE: on @@ -78,11 +91,11 @@ steps: - push - pull_request -- name: build-heroku +- name: build-tag pull: always image: golang:1.11 commands: - - "go build -v -ldflags \"-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/linux/amd64/drone-heroku ./cmd/drone-heroku" + - "go build -v -ldflags \"-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/windows/amd64/drone-gcr ./cmd/drone-gcr" environment: CGO_ENABLED: 0 GO111MODULE: on @@ -90,44 +103,60 @@ steps: event: - tag -- name: dryrun-heroku +- name: dryrun pull: always - image: plugins/docker:linux-amd64 + image: plugins/docker:windows-amd64 settings: dry_run: true - herokufile: docker/heroku/Dockerfile.linux.amd64 + gcrfile: docker/gcr/Dockerfile.windows.amd64 password: - from_secret: heroku_password - repo: plugins/heroku - tags: linux-amd64 + from_secret: gcr_password + repo: plugins/gcr + tags: windows-amd64 username: - from_secret: heroku_username + from_secret: gcr_username when: event: - pull_request -- name: publish-heroku +- name: publish pull: always - image: plugins/docker:linux-amd64 + image: plugins/docker:windows-amd64 settings: auto_tag: true - auto_tag_suffix: linux-amd64 - herokufile: docker/heroku/Dockerfile.linux.amd64 + auto_tag_suffix: windows-amd64 + gcrfile: docker/gcr/Dockerfile.windows.amd64 password: - from_secret: heroku_password - repo: plugins/heroku + from_secret: gcr_password + repo: plugins/gcr username: - from_secret: heroku_username + from_secret: gcr_username when: event: - push - tag -- name: build-gcr +trigger: + branch: + - master + +depends_on: +- windows-amd64-docker + +--- +kind: pipeline +name: windows-amd64-ecr + +platform: + os: windows + arch: amd64 + +steps: +- name: build-push pull: always image: golang:1.11 commands: - - "go build -v -ldflags \"-X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/linux/amd64/drone-gcr ./cmd/drone-gcr" + - "go build -v -ldflags \"-X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/windows/amd64/drone-ecr ./cmd/drone-ecr" environment: CGO_ENABLED: 0 GO111MODULE: on @@ -136,11 +165,11 @@ steps: - push - pull_request -- name: build-gcr +- name: build-tag pull: always image: golang:1.11 commands: - - "go build -v -ldflags \"-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/linux/amd64/drone-gcr ./cmd/drone-gcr" + - "go build -v -ldflags \"-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/windows/amd64/drone-ecr ./cmd/drone-ecr" environment: CGO_ENABLED: 0 GO111MODULE: on @@ -148,44 +177,60 @@ steps: event: - tag -- name: dryrun-gcr +- name: dryrun pull: always - image: plugins/docker:linux-amd64 + image: plugins/docker:windows-amd64 settings: + dockerfile: docker/ecr/Dockerfile.windows.amd64 dry_run: true - gcrfile: docker/gcr/Dockerfile.linux.amd64 password: - from_secret: gcr_password - repo: plugins/gcr - tags: linux-amd64 + from_secret: ecr_password + repo: plugins/ecr + tags: windows-amd64 username: - from_secret: gcr_username + from_secret: ecr_username when: event: - pull_request -- name: publish-gcr +- name: publish pull: always - image: plugins/docker:linux-amd64 + image: plugins/docker:windows-amd64 settings: auto_tag: true - auto_tag_suffix: linux-amd64 - gcrfile: docker/gcr/Dockerfile.linux.amd64 + auto_tag_suffix: windows-amd64 + dockerfile: docker/ecr/Dockerfile.windows.amd64 password: - from_secret: gcr_password - repo: plugins/gcr + from_secret: ecr_password + repo: plugins/ecr username: - from_secret: gcr_username + from_secret: ecr_username when: event: - push - tag -- name: build-ecr +trigger: + branch: + - master + +depends_on: +- windows-amd64-docker + +--- +kind: pipeline +name: windows-amd64-heroku + +platform: + os: windows + arch: amd64 + +steps: +- name: build-push pull: always image: golang:1.11 commands: - - "go build -v -ldflags \"-X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/linux/amd64/drone-ecr ./cmd/drone-ecr" + - "go build -v -ldflags \"-X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/windows/amd64/drone-heroku ./cmd/drone-heroku" environment: CGO_ENABLED: 0 GO111MODULE: on @@ -194,11 +239,11 @@ steps: - push - pull_request -- name: build-ecr +- name: build-tag pull: always image: golang:1.11 commands: - - "go build -v -ldflags \"-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/linux/amd64/drone-ecr ./cmd/drone-ecr" + - "go build -v -ldflags \"-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/windows/amd64/drone-heroku ./cmd/drone-heroku" environment: CGO_ENABLED: 0 GO111MODULE: on @@ -206,34 +251,34 @@ steps: event: - tag -- name: dryrun-ecr +- name: dryrun pull: always - image: plugins/docker:linux-amd64 + image: plugins/docker:windows-amd64 settings: - dockerfile: docker/ecr/Dockerfile.linux.amd64 dry_run: true + herokufile: docker/heroku/Dockerfile.windows.amd64 password: - from_secret: ecr_password - repo: plugins/ecr - tags: linux-amd64 + from_secret: heroku_password + repo: plugins/heroku + tags: windows-amd64 username: - from_secret: ecr_username + from_secret: heroku_username when: event: - pull_request -- name: publish-ecr +- name: publish pull: always - image: plugins/docker:linux-amd64 + image: plugins/docker:windows-amd64 settings: auto_tag: true - auto_tag_suffix: linux-amd64 - dockerfile: docker/ecr/Dockerfile.linux.amd64 + auto_tag_suffix: windows-amd64 + herokufile: docker/heroku/Dockerfile.windows.amd64 password: - from_secret: ecr_password - repo: plugins/ecr + from_secret: heroku_password + repo: plugins/heroku username: - from_secret: ecr_username + from_secret: heroku_username when: event: - push @@ -242,3 +287,6 @@ steps: trigger: branch: - master + +depends_on: +- windows-amd64-docker diff --git a/.drone.yml b/.drone.yml index 319db3a..6571ee8 100644 --- a/.drone.yml +++ b/.drone.yml @@ -29,14 +29,14 @@ trigger: --- kind: pipeline -name: linux-amd64 +name: linux-amd64-docker platform: os: linux arch: amd64 steps: -- name: build-docker +- name: build-push pull: always image: golang:1.11 commands: @@ -49,7 +49,7 @@ steps: - push - pull_request -- name: build-docker +- name: build-tag pull: always image: golang:1.11 commands: @@ -61,7 +61,7 @@ steps: event: - tag -- name: dryrun-docker +- name: dryrun pull: always image: plugins/docker:linux-amd64 settings: @@ -77,7 +77,7 @@ steps: event: - pull_request -- name: publish-docker +- name: publish pull: always image: plugins/docker:linux-amd64 settings: @@ -94,11 +94,27 @@ steps: - push - tag -- name: build-heroku +trigger: + branch: + - master + +depends_on: +- testing + +--- +kind: pipeline +name: linux-arm64-docker + +platform: + os: linux + arch: arm64 + +steps: +- name: build-push pull: always image: golang:1.11 commands: - - "go build -v -ldflags \"-X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/linux/amd64/drone-heroku ./cmd/drone-heroku" + - "go build -v -ldflags \"-X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/linux/arm64/drone-docker ./cmd/drone-docker" environment: CGO_ENABLED: 0 GO111MODULE: on @@ -107,11 +123,11 @@ steps: - push - pull_request -- name: build-heroku +- name: build-tag pull: always image: golang:1.11 commands: - - "go build -v -ldflags \"-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/linux/amd64/drone-heroku ./cmd/drone-heroku" + - "go build -v -ldflags \"-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/linux/arm64/drone-docker ./cmd/drone-docker" environment: CGO_ENABLED: 0 GO111MODULE: on @@ -119,44 +135,60 @@ steps: event: - tag -- name: dryrun-heroku +- name: dryrun pull: always - image: plugins/docker:linux-amd64 + image: plugins/docker:linux-arm64 settings: + dockerfile: docker/docker/Dockerfile.linux.arm64 dry_run: true - herokufile: docker/heroku/Dockerfile.linux.amd64 password: - from_secret: heroku_password - repo: plugins/heroku - tags: linux-amd64 + from_secret: docker_password + repo: plugins/docker + tags: linux-arm64 username: - from_secret: heroku_username + from_secret: docker_username when: event: - pull_request -- name: publish-heroku +- name: publish pull: always - image: plugins/docker:linux-amd64 + image: plugins/docker:linux-arm64 settings: auto_tag: true - auto_tag_suffix: linux-amd64 - herokufile: docker/heroku/Dockerfile.linux.amd64 + auto_tag_suffix: linux-arm64 + dockerfile: docker/docker/Dockerfile.linux.arm64 password: - from_secret: heroku_password - repo: plugins/heroku + from_secret: docker_password + repo: plugins/docker username: - from_secret: heroku_username + from_secret: docker_username when: event: - push - tag -- name: build-gcr +trigger: + branch: + - master + +depends_on: +- testing + +--- +kind: pipeline +name: linux-arm-docker + +platform: + os: linux + arch: arm + +steps: +- name: build-push pull: always image: golang:1.11 commands: - - "go build -v -ldflags \"-X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/linux/amd64/drone-gcr ./cmd/drone-gcr" + - "go build -v -ldflags \"-X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/linux/arm/drone-docker ./cmd/drone-docker" environment: CGO_ENABLED: 0 GO111MODULE: on @@ -165,11 +197,11 @@ steps: - push - pull_request -- name: build-gcr +- name: build-tag pull: always image: golang:1.11 commands: - - "go build -v -ldflags \"-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/linux/amd64/drone-gcr ./cmd/drone-gcr" + - "go build -v -ldflags \"-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/linux/arm/drone-docker ./cmd/drone-docker" environment: CGO_ENABLED: 0 GO111MODULE: on @@ -177,44 +209,60 @@ steps: event: - tag -- name: dryrun-gcr +- name: dryrun pull: always - image: plugins/docker:linux-amd64 + image: plugins/docker:linux-arm settings: + dockerfile: docker/docker/Dockerfile.linux.arm dry_run: true - gcrfile: docker/gcr/Dockerfile.linux.amd64 password: - from_secret: gcr_password - repo: plugins/gcr - tags: linux-amd64 + from_secret: docker_password + repo: plugins/docker + tags: linux-arm username: - from_secret: gcr_username + from_secret: docker_username when: event: - pull_request -- name: publish-gcr +- name: publish pull: always - image: plugins/docker:linux-amd64 + image: plugins/docker:linux-arm settings: auto_tag: true - auto_tag_suffix: linux-amd64 - gcrfile: docker/gcr/Dockerfile.linux.amd64 + auto_tag_suffix: linux-arm + dockerfile: docker/docker/Dockerfile.linux.arm password: - from_secret: gcr_password - repo: plugins/gcr + from_secret: docker_password + repo: plugins/docker username: - from_secret: gcr_username + from_secret: docker_username when: event: - push - tag -- name: build-ecr +trigger: + branch: + - master + +depends_on: +- testing + +--- +kind: pipeline +name: linux-amd64-gcr + +platform: + os: linux + arch: amd64 + +steps: +- name: build-push pull: always image: golang:1.11 commands: - - "go build -v -ldflags \"-X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/linux/amd64/drone-ecr ./cmd/drone-ecr" + - "go build -v -ldflags \"-X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/linux/amd64/drone-gcr ./cmd/drone-gcr" environment: CGO_ENABLED: 0 GO111MODULE: on @@ -223,11 +271,11 @@ steps: - push - pull_request -- name: build-ecr +- name: build-tag pull: always image: golang:1.11 commands: - - "go build -v -ldflags \"-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/linux/amd64/drone-ecr ./cmd/drone-ecr" + - "go build -v -ldflags \"-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/linux/amd64/drone-gcr ./cmd/drone-gcr" environment: CGO_ENABLED: 0 GO111MODULE: on @@ -235,34 +283,34 @@ steps: event: - tag -- name: dryrun-ecr +- name: dryrun pull: always image: plugins/docker:linux-amd64 settings: - dockerfile: docker/ecr/Dockerfile.linux.amd64 + dockerfile: docker/gcr/Dockerfile.linux.amd64 dry_run: true password: - from_secret: ecr_password - repo: plugins/ecr + from_secret: docker_password + repo: plugins/gcr tags: linux-amd64 username: - from_secret: ecr_username + from_secret: docker_username when: event: - pull_request -- name: publish-ecr +- name: publish pull: always image: plugins/docker:linux-amd64 settings: auto_tag: true auto_tag_suffix: linux-amd64 - dockerfile: docker/ecr/Dockerfile.linux.amd64 + dockerfile: docker/gcr/Dockerfile.linux.amd64 password: - from_secret: ecr_password - repo: plugins/ecr + from_secret: docker_password + repo: plugins/gcr username: - from_secret: ecr_username + from_secret: docker_username when: event: - push @@ -277,18 +325,18 @@ depends_on: --- kind: pipeline -name: linux-arm64 +name: linux-arm64-gcr platform: os: linux arch: arm64 steps: -- name: build-docker +- name: build-push pull: always image: golang:1.11 commands: - - "go build -v -ldflags \"-X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/linux/arm64/drone-docker ./cmd/drone-docker" + - "go build -v -ldflags \"-X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/linux/arm64/drone-gcr ./cmd/drone-gcr" environment: CGO_ENABLED: 0 GO111MODULE: on @@ -297,11 +345,11 @@ steps: - push - pull_request -- name: build-docker +- name: build-tag pull: always image: golang:1.11 commands: - - "go build -v -ldflags \"-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/linux/arm64/drone-docker ./cmd/drone-docker" + - "go build -v -ldflags \"-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/linux/arm64/drone-gcr ./cmd/drone-gcr" environment: CGO_ENABLED: 0 GO111MODULE: on @@ -309,15 +357,15 @@ steps: event: - tag -- name: dryrun-docker +- name: dryrun pull: always image: plugins/docker:linux-arm64 settings: - dockerfile: docker/docker/Dockerfile.linux.arm64 + dockerfile: docker/gcr/Dockerfile.linux.arm64 dry_run: true password: from_secret: docker_password - repo: plugins/docker + repo: plugins/gcr tags: linux-arm64 username: from_secret: docker_username @@ -325,16 +373,16 @@ steps: event: - pull_request -- name: publish-docker +- name: publish pull: always image: plugins/docker:linux-arm64 settings: auto_tag: true auto_tag_suffix: linux-arm64 - dockerfile: docker/docker/Dockerfile.linux.arm64 + dockerfile: docker/gcr/Dockerfile.linux.arm64 password: from_secret: docker_password - repo: plugins/docker + repo: plugins/gcr username: from_secret: docker_username when: @@ -342,11 +390,27 @@ steps: - push - tag -- name: build-heroku +trigger: + branch: + - master + +depends_on: +- testing + +--- +kind: pipeline +name: linux-arm-gcr + +platform: + os: linux + arch: arm + +steps: +- name: build-push pull: always image: golang:1.11 commands: - - "go build -v -ldflags \"-X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/linux/arm64/drone-heroku ./cmd/drone-heroku" + - "go build -v -ldflags \"-X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/linux/arm/drone-gcr ./cmd/drone-gcr" environment: CGO_ENABLED: 0 GO111MODULE: on @@ -355,11 +419,11 @@ steps: - push - pull_request -- name: build-heroku +- name: build-tag pull: always image: golang:1.11 commands: - - "go build -v -ldflags \"-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/linux/arm64/drone-heroku ./cmd/drone-heroku" + - "go build -v -ldflags \"-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/linux/arm/drone-gcr ./cmd/drone-gcr" environment: CGO_ENABLED: 0 GO111MODULE: on @@ -367,44 +431,60 @@ steps: event: - tag -- name: dryrun-heroku +- name: dryrun pull: always - image: plugins/docker:linux-arm64 + image: plugins/docker:linux-arm settings: + dockerfile: docker/gcr/Dockerfile.linux.arm dry_run: true - herokufile: docker/heroku/Dockerfile.linux.arm64 password: - from_secret: heroku_password - repo: plugins/heroku - tags: linux-arm64 + from_secret: docker_password + repo: plugins/gcr + tags: linux-arm username: - from_secret: heroku_username + from_secret: docker_username when: event: - pull_request -- name: publish-heroku +- name: publish pull: always - image: plugins/docker:linux-arm64 + image: plugins/docker:linux-arm settings: auto_tag: true - auto_tag_suffix: linux-arm64 - herokufile: docker/heroku/Dockerfile.linux.arm64 + auto_tag_suffix: linux-arm + dockerfile: docker/gcr/Dockerfile.linux.arm password: - from_secret: heroku_password - repo: plugins/heroku + from_secret: docker_password + repo: plugins/gcr username: - from_secret: heroku_username + from_secret: docker_username when: event: - push - tag -- name: build-gcr +trigger: + branch: + - master + +depends_on: +- testing + +--- +kind: pipeline +name: linux-amd64-ecr + +platform: + os: linux + arch: amd64 + +steps: +- name: build-push pull: always image: golang:1.11 commands: - - "go build -v -ldflags \"-X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/linux/arm64/drone-gcr ./cmd/drone-gcr" + - "go build -v -ldflags \"-X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/linux/amd64/drone-ecr ./cmd/drone-ecr" environment: CGO_ENABLED: 0 GO111MODULE: on @@ -413,11 +493,11 @@ steps: - push - pull_request -- name: build-gcr +- name: build-tag pull: always image: golang:1.11 commands: - - "go build -v -ldflags \"-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/linux/arm64/drone-gcr ./cmd/drone-gcr" + - "go build -v -ldflags \"-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/linux/amd64/drone-ecr ./cmd/drone-ecr" environment: CGO_ENABLED: 0 GO111MODULE: on @@ -425,40 +505,56 @@ steps: event: - tag -- name: dryrun-gcr +- name: dryrun pull: always - image: plugins/docker:linux-arm64 + image: plugins/docker:linux-amd64 settings: + dockerfile: docker/ecr/Dockerfile.linux.amd64 dry_run: true - gcrfile: docker/gcr/Dockerfile.linux.arm64 password: - from_secret: gcr_password - repo: plugins/gcr - tags: linux-arm64 + from_secret: docker_password + repo: plugins/ecr + tags: linux-amd64 username: - from_secret: gcr_username + from_secret: docker_username when: event: - pull_request -- name: publish-gcr +- name: publish pull: always - image: plugins/docker:linux-arm64 + image: plugins/docker:linux-amd64 settings: auto_tag: true - auto_tag_suffix: linux-arm64 - gcrfile: docker/gcr/Dockerfile.linux.arm64 + auto_tag_suffix: linux-amd64 + dockerfile: docker/ecr/Dockerfile.linux.amd64 password: - from_secret: gcr_password - repo: plugins/gcr + from_secret: docker_password + repo: plugins/ecr username: - from_secret: gcr_username + from_secret: docker_username when: event: - push - tag -- name: build-ecr +trigger: + branch: + - master + +depends_on: +- testing + +--- +kind: pipeline +name: linux-arm64-ecr + +platform: + os: linux + arch: arm64 + +steps: +- name: build-push pull: always image: golang:1.11 commands: @@ -471,7 +567,7 @@ steps: - push - pull_request -- name: build-ecr +- name: build-tag pull: always image: golang:1.11 commands: @@ -483,23 +579,23 @@ steps: event: - tag -- name: dryrun-ecr +- name: dryrun pull: always image: plugins/docker:linux-arm64 settings: dockerfile: docker/ecr/Dockerfile.linux.arm64 dry_run: true password: - from_secret: ecr_password + from_secret: docker_password repo: plugins/ecr tags: linux-arm64 username: - from_secret: ecr_username + from_secret: docker_username when: event: - pull_request -- name: publish-ecr +- name: publish pull: always image: plugins/docker:linux-arm64 settings: @@ -507,10 +603,10 @@ steps: auto_tag_suffix: linux-arm64 dockerfile: docker/ecr/Dockerfile.linux.arm64 password: - from_secret: ecr_password + from_secret: docker_password repo: plugins/ecr username: - from_secret: ecr_username + from_secret: docker_username when: event: - push @@ -525,18 +621,18 @@ depends_on: --- kind: pipeline -name: linux-arm +name: linux-arm-ecr platform: os: linux arch: arm steps: -- name: build-docker +- name: build-push pull: always image: golang:1.11 commands: - - "go build -v -ldflags \"-X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/linux/arm/drone-docker ./cmd/drone-docker" + - "go build -v -ldflags \"-X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/linux/arm/drone-ecr ./cmd/drone-ecr" environment: CGO_ENABLED: 0 GO111MODULE: on @@ -545,11 +641,11 @@ steps: - push - pull_request -- name: build-docker +- name: build-tag pull: always image: golang:1.11 commands: - - "go build -v -ldflags \"-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/linux/arm/drone-docker ./cmd/drone-docker" + - "go build -v -ldflags \"-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/linux/arm/drone-ecr ./cmd/drone-ecr" environment: CGO_ENABLED: 0 GO111MODULE: on @@ -557,15 +653,15 @@ steps: event: - tag -- name: dryrun-docker +- name: dryrun pull: always image: plugins/docker:linux-arm settings: - dockerfile: docker/docker/Dockerfile.linux.arm + dockerfile: docker/ecr/Dockerfile.linux.arm dry_run: true password: from_secret: docker_password - repo: plugins/docker + repo: plugins/ecr tags: linux-arm username: from_secret: docker_username @@ -573,16 +669,16 @@ steps: event: - pull_request -- name: publish-docker +- name: publish pull: always image: plugins/docker:linux-arm settings: auto_tag: true auto_tag_suffix: linux-arm - dockerfile: docker/docker/Dockerfile.linux.arm + dockerfile: docker/ecr/Dockerfile.linux.arm password: from_secret: docker_password - repo: plugins/docker + repo: plugins/ecr username: from_secret: docker_username when: @@ -590,11 +686,27 @@ steps: - push - tag -- name: build-heroku +trigger: + branch: + - master + +depends_on: +- testing + +--- +kind: pipeline +name: linux-amd64-heroku + +platform: + os: linux + arch: amd64 + +steps: +- name: build-push pull: always image: golang:1.11 commands: - - "go build -v -ldflags \"-X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/linux/arm/drone-heroku ./cmd/drone-heroku" + - "go build -v -ldflags \"-X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/linux/amd64/drone-heroku ./cmd/drone-heroku" environment: CGO_ENABLED: 0 GO111MODULE: on @@ -603,11 +715,11 @@ steps: - push - pull_request -- name: build-heroku +- name: build-tag pull: always image: golang:1.11 commands: - - "go build -v -ldflags \"-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/linux/arm/drone-heroku ./cmd/drone-heroku" + - "go build -v -ldflags \"-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/linux/amd64/drone-heroku ./cmd/drone-heroku" environment: CGO_ENABLED: 0 GO111MODULE: on @@ -615,44 +727,60 @@ steps: event: - tag -- name: dryrun-heroku +- name: dryrun pull: always - image: plugins/docker:linux-arm + image: plugins/docker:linux-amd64 settings: + dockerfile: docker/heroku/Dockerfile.linux.amd64 dry_run: true - herokufile: docker/heroku/Dockerfile.linux.arm password: - from_secret: heroku_password + from_secret: docker_password repo: plugins/heroku - tags: linux-arm + tags: linux-amd64 username: - from_secret: heroku_username + from_secret: docker_username when: event: - pull_request -- name: publish-heroku +- name: publish pull: always - image: plugins/docker:linux-arm + image: plugins/docker:linux-amd64 settings: auto_tag: true - auto_tag_suffix: linux-arm - herokufile: docker/heroku/Dockerfile.linux.arm + auto_tag_suffix: linux-amd64 + dockerfile: docker/heroku/Dockerfile.linux.amd64 password: - from_secret: heroku_password + from_secret: docker_password repo: plugins/heroku username: - from_secret: heroku_username + from_secret: docker_username when: event: - push - tag -- name: build-gcr +trigger: + branch: + - master + +depends_on: +- testing + +--- +kind: pipeline +name: linux-arm64-heroku + +platform: + os: linux + arch: arm64 + +steps: +- name: build-push pull: always image: golang:1.11 commands: - - "go build -v -ldflags \"-X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/linux/arm/drone-gcr ./cmd/drone-gcr" + - "go build -v -ldflags \"-X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/linux/arm64/drone-heroku ./cmd/drone-heroku" environment: CGO_ENABLED: 0 GO111MODULE: on @@ -661,11 +789,11 @@ steps: - push - pull_request -- name: build-gcr +- name: build-tag pull: always image: golang:1.11 commands: - - "go build -v -ldflags \"-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/linux/arm/drone-gcr ./cmd/drone-gcr" + - "go build -v -ldflags \"-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/linux/arm64/drone-heroku ./cmd/drone-heroku" environment: CGO_ENABLED: 0 GO111MODULE: on @@ -673,44 +801,60 @@ steps: event: - tag -- name: dryrun-gcr +- name: dryrun pull: always - image: plugins/docker:linux-arm + image: plugins/docker:linux-arm64 settings: + dockerfile: docker/heroku/Dockerfile.linux.arm64 dry_run: true - gcrfile: docker/gcr/Dockerfile.linux.arm password: - from_secret: gcr_password - repo: plugins/gcr - tags: linux-arm + from_secret: docker_password + repo: plugins/heroku + tags: linux-arm64 username: - from_secret: gcr_username + from_secret: docker_username when: event: - pull_request -- name: publish-gcr +- name: publish pull: always - image: plugins/docker:linux-arm + image: plugins/docker:linux-arm64 settings: auto_tag: true - auto_tag_suffix: linux-arm - gcrfile: docker/gcr/Dockerfile.linux.arm + auto_tag_suffix: linux-arm64 + dockerfile: docker/heroku/Dockerfile.linux.arm64 password: - from_secret: gcr_password - repo: plugins/gcr + from_secret: docker_password + repo: plugins/heroku username: - from_secret: gcr_username + from_secret: docker_username when: event: - push - tag -- name: build-ecr +trigger: + branch: + - master + +depends_on: +- testing + +--- +kind: pipeline +name: linux-arm-heroku + +platform: + os: linux + arch: arm + +steps: +- name: build-push pull: always image: golang:1.11 commands: - - "go build -v -ldflags \"-X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/linux/arm/drone-ecr ./cmd/drone-ecr" + - "go build -v -ldflags \"-X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/linux/arm/drone-heroku ./cmd/drone-heroku" environment: CGO_ENABLED: 0 GO111MODULE: on @@ -719,11 +863,11 @@ steps: - push - pull_request -- name: build-ecr +- name: build-tag pull: always image: golang:1.11 commands: - - "go build -v -ldflags \"-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/linux/arm/drone-ecr ./cmd/drone-ecr" + - "go build -v -ldflags \"-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/linux/arm/drone-heroku ./cmd/drone-heroku" environment: CGO_ENABLED: 0 GO111MODULE: on @@ -731,34 +875,34 @@ steps: event: - tag -- name: dryrun-ecr +- name: dryrun pull: always image: plugins/docker:linux-arm settings: - dockerfile: docker/ecr/Dockerfile.linux.arm + dockerfile: docker/heroku/Dockerfile.linux.arm dry_run: true password: - from_secret: ecr_password - repo: plugins/ecr + from_secret: docker_password + repo: plugins/heroku tags: linux-arm username: - from_secret: ecr_username + from_secret: docker_username when: event: - pull_request -- name: publish-ecr +- name: publish pull: always image: plugins/docker:linux-arm settings: auto_tag: true auto_tag_suffix: linux-arm - dockerfile: docker/ecr/Dockerfile.linux.arm + dockerfile: docker/heroku/Dockerfile.linux.arm password: - from_secret: ecr_password - repo: plugins/ecr + from_secret: docker_password + repo: plugins/heroku username: - from_secret: ecr_username + from_secret: docker_username when: event: - push @@ -773,14 +917,14 @@ depends_on: --- kind: pipeline -name: notifications +name: notifications-docker platform: os: linux arch: amd64 steps: -- name: manifest-docker +- name: manifest pull: always image: plugins/manifest:1 settings: @@ -791,66 +935,129 @@ steps: username: from_secret: docker_username -- name: microbadger-docker +- name: microbadger pull: always image: plugins/webhook:1 settings: url: from_secret: microbadger_docker -- name: manifest-heroku +trigger: + branch: + - master + event: + - push + - tag + +depends_on: +- linux-amd64-docker +- linux-arm64-docker +- linux-arm-docker + +--- +kind: pipeline +name: notifications-gcr + +platform: + os: linux + arch: amd64 + +steps: +- name: manifest pull: always image: plugins/manifest:1 settings: ignore_missing: true password: - from_secret: heroku_password - spec: docker/heroku/manifest.tmpl + from_secret: docker_password + spec: docker/gcr/manifest.tmpl username: - from_secret: heroku_username + from_secret: docker_username -- name: microbadger-heroku +- name: microbadger pull: always image: plugins/webhook:1 settings: url: - from_secret: microbadger_heroku + from_secret: microbadger_docker + +trigger: + branch: + - master + event: + - push + - tag + +depends_on: +- linux-amd64-gcr +- linux-arm64-gcr +- linux-arm-gcr -- name: manifest-gcr +--- +kind: pipeline +name: notifications-ecr + +platform: + os: linux + arch: amd64 + +steps: +- name: manifest pull: always image: plugins/manifest:1 settings: ignore_missing: true password: - from_secret: gcr_password - spec: docker/gcr/manifest.tmpl + from_secret: docker_password + spec: docker/ecr/manifest.tmpl username: - from_secret: gcr_username + from_secret: docker_username -- name: microbadger-gcr +- name: microbadger pull: always image: plugins/webhook:1 settings: url: - from_secret: microbadger_gcr + from_secret: microbadger_docker + +trigger: + branch: + - master + event: + - push + - tag + +depends_on: +- linux-amd64-ecr +- linux-arm64-ecr +- linux-arm-ecr -- name: manifest-ecr +--- +kind: pipeline +name: notifications-heroku + +platform: + os: linux + arch: amd64 + +steps: +- name: manifest pull: always image: plugins/manifest:1 settings: ignore_missing: true password: - from_secret: ecr_password - spec: docker/ecr/manifest.tmpl + from_secret: docker_password + spec: docker/heroku/manifest.tmpl username: - from_secret: ecr_username + from_secret: docker_username -- name: microbadger-ecr +- name: microbadger pull: always image: plugins/webhook:1 settings: url: - from_secret: microbadger_ecr + from_secret: microbadger_docker trigger: branch: @@ -860,8 +1067,8 @@ trigger: - tag depends_on: -- linux-amd64 -- linux-arm64 -- linux-arm +- linux-amd64-heroku +- linux-arm64-heroku +- linux-arm-heroku ...