From faec3cf9d874c28ac49f2dcb32fd19c8f8eb653a Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Thu, 19 Nov 2020 17:12:28 -0500 Subject: [PATCH] temporarily revert to last working yaml [CI SKIP] --- .drone.yml | 115 ++++++++++++++--------------------------------------- 1 file changed, 29 insertions(+), 86 deletions(-) diff --git a/.drone.yml b/.drone.yml index 3997933..f520bb8 100644 --- a/.drone.yml +++ b/.drone.yml @@ -55,9 +55,11 @@ server: from_secret: windows_username steps: -- name: build-push +- name: build commands: - - go build -v -ldflags ('-X main.version={0}' -f $env:DRONE_COMMIT_SHA.Substring(0, 8)) -a -tags netgo -o release/windows/amd64/drone-docker.exe ./cmd/drone-docker + # TODO use the new DRONE_SEMVER_SHORT environment variables to + # publish docker images for tag events. + - go build -o release/windows/amd64/drone-docker.exe ./cmd/drone-docker - docker login -u $env:USERNAME -p $env:PASSWORD - docker build -f docker/docker/Dockerfile.windows.1809 -t plugins/docker:windows-1809-amd64 . - docker push plugins/docker:windows-1809-amd64 @@ -67,31 +69,10 @@ steps: from_secret: docker_username PASSWORD: from_secret: docker_password - when: - event: - exclude: - - tag - -- name: build-tag - commands: - - go build -v -ldflags ('-X main.version={0}' -f $env:DRONE_SEMVER_SHORT) -a -tags netgo -o release/windows/amd64/drone-docker.exe ./cmd/drone-docker - - docker login -u $env:USERNAME -p $env:PASSWORD - - docker build -f docker/docker/Dockerfile.windows.1809 -t ('plugins/docker:{0}-windows-1809-amd64' -f $env:DRONE_SEMVER_SHORT) . - - docker push ('plugins/docker:{0}-windows-1809-amd64' -t $env:DRONE_SEMVER_SHORT) - environment: - CGO_ENABLED: "0" - USERNAME: - from_secret: docker_username - PASSWORD: - from_secret: docker_password - when: - event: - - tag trigger: - ref: - - refs/heads/master - - "refs/tags/**" + event: + - push depends_on: - testing @@ -112,9 +93,11 @@ server: from_secret: windows_username steps: -- name: build-push +- name: build commands: - - go build -v -ldflags ('-X main.version={0}' -f $env:DRONE_COMMIT_SHA.Substring(0, 8)) -a -tags netgo -o release/windows/amd64/drone-docker.exe ./cmd/drone-docker + # TODO use the new DRONE_SEMVER_SHORT environment variables to + # publish docker images for tag events. + - go build -o release/windows/amd64/drone-docker.exe ./cmd/drone-docker - docker login -u $env:USERNAME -p $env:PASSWORD - docker build -f docker/docker/Dockerfile.windows.1903 -t plugins/docker:windows-1903-amd64 . - docker push plugins/docker:windows-1903-amd64 @@ -124,31 +107,10 @@ steps: from_secret: docker_username PASSWORD: from_secret: docker_password - when: - event: - exclude: - - tag - -- name: build-tag - commands: - - go build -v -ldflags ('-X main.version={0}' -f $env:DRONE_SEMVER_SHORT) -a -tags netgo -o release/windows/amd64/drone-docker.exe ./cmd/drone-docker - - docker login -u $env:USERNAME -p $env:PASSWORD - - docker build -f docker/docker/Dockerfile.windows.1903 -t ('plugins/docker:{0}-windows-1903-amd64' -f $env:DRONE_SEMVER_SHORT) . - - docker push ('plugins/docker:{0}-windows-1903-amd64' -t $env:DRONE_SEMVER_SHORT) - environment: - CGO_ENABLED: "0" - USERNAME: - from_secret: docker_username - PASSWORD: - from_secret: docker_password - when: - event: - - tag trigger: - ref: - - refs/heads/master - - "refs/tags/**" + event: + - push depends_on: - testing @@ -169,43 +131,24 @@ server: from_secret: windows_username steps: -- name: build-push - commands: - - go build -v -ldflags ('-X main.version={0}' -f $env:DRONE_COMMIT_SHA.Substring(0, 8)) -a -tags netgo -o release/windows/amd64/drone-docker.exe ./cmd/drone-docker - - docker login -u $env:USERNAME -p $env:PASSWORD - - docker build -f docker/docker/Dockerfile.windows.1909 -t plugins/docker:windows-1909-amd64 . - - docker push plugins/docker:windows-1909-amd64 - environment: - CGO_ENABLED: "0" - USERNAME: - from_secret: docker_username - PASSWORD: - from_secret: docker_password - when: - event: - exclude: - - tag - -- name: build-tag - commands: - - go build -v -ldflags ('-X main.version={0}' -f $env:DRONE_SEMVER_SHORT) -a -tags netgo -o release/windows/amd64/drone-docker.exe ./cmd/drone-docker - - docker login -u $env:USERNAME -p $env:PASSWORD - - docker build -f docker/docker/Dockerfile.windows.1909 -t ('plugins/docker:{0}-windows-1909-amd64' -f $env:DRONE_SEMVER_SHORT) . - - docker push ('plugins/docker:{0}-windows-1909-amd64' -t $env:DRONE_SEMVER_SHORT) - environment: - CGO_ENABLED: "0" - USERNAME: - from_secret: docker_username - PASSWORD: - from_secret: docker_password - when: - event: - - tag + - name: build + commands: + # TODO use the new DRONE_SEMVER_SHORT environment variables to + # publish docker images for tag events. + - go build -o release/windows/amd64/drone-docker.exe ./cmd/drone-docker + - docker login -u $env:USERNAME -p $env:PASSWORD + - docker build -f docker/docker/Dockerfile.windows.1909 -t plugins/docker:windows-1909-amd64 . + - docker push plugins/docker:windows-1909-amd64 + environment: + CGO_ENABLED: "0" + USERNAME: + from_secret: docker_username + PASSWORD: + from_secret: docker_password trigger: - ref: - - refs/heads/master - - "refs/tags/**" + event: + - push depends_on: - testing @@ -1596,4 +1539,4 @@ depends_on: - linux-arm-acr -... +... \ No newline at end of file