forked from drone-plugins/drone-slack
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
311 additions
and
302 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
version: '{build}' | ||
image: 'Visual Studio 2017' | ||
platform: 'x64' | ||
|
||
clone_folder: 'c:\gopath\src\github.com\drone-plugins\drone-slack' | ||
max_jobs: 1 | ||
|
||
environment: | ||
GOPATH: c:\gopath | ||
DOCKER_USERNAME: | ||
secure: '4YzzahbEiMZQJpOCOd1LAw==' | ||
DOCKER_PASSWORD: | ||
secure: 'VqO/G3Zfslu6zSLdwHKO+Q==' | ||
|
||
install: | ||
- ps: | | ||
docker version | ||
go version | ||
- ps: | | ||
$env:Path = "c:\gopath\bin;$env:Path" | ||
build_script: | ||
- ps: | | ||
go get -u github.com/golang/dep/cmd/dep | ||
dep ensure | ||
if ( $env:APPVEYOR_REPO_TAG -eq 'false' ) { | ||
go build -ldflags "-X main.build=$env:APPVEYOR_BUILD_VERSION" -a -o release/drone-slack.exe | ||
} else { | ||
$version = $env:APPVEYOR_REPO_TAG_NAME.substring(1) | ||
go build -ldflags "-X main.version=$version -X main.build=$env:APPVEYOR_BUILD_VERSION" -a -o release/drone-slack.exe | ||
} | ||
docker pull microsoft/nanoserver:10.0.14393.1593 | ||
docker build -f Dockerfile.windows -t plugins/slack:windows-amd64 . | ||
test_script: | ||
- ps: | | ||
docker run --rm plugins/slack:windows-amd64 --version | ||
deploy_script: | ||
- ps: | | ||
$ErrorActionPreference = 'Stop'; | ||
if ( $env:APPVEYOR_PULL_REQUEST_NUMBER ) { | ||
Write-Host Nothing to deploy. | ||
} else { | ||
docker login --username $env:DOCKER_USERNAME --password $env:DOCKER_PASSWORD | ||
if ( $env:APPVEYOR_REPO_TAG -eq 'true' ) { | ||
$major,$minor,$patch = $env:APPVEYOR_REPO_TAG_NAME.substring(1).split('.') | ||
docker push plugins/slack:windows-amd64 | ||
docker tag plugins/slack:windows-amd64 plugins/slack:$major.$minor.$patch-windows-amd64 | ||
docker push plugins/slack:$major.$minor.$patch-windows-amd64 | ||
docker tag plugins/slack:windows-amd64 plugins/slack:$major.$minor-windows-amd64 | ||
docker push plugins/slack:$major.$minor-windows-amd64 | ||
docker tag plugins/slack:windows-amd64 plugins/slack:$major-windows-amd64 | ||
docker push plugins/slack:$major-windows-amd64 | ||
} else { | ||
if ( $env:APPVEYOR_REPO_BRANCH -eq 'master' ) { | ||
docker push plugins/slack:windows-amd64 | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +0,0 @@ | ||
<!-- PLEASE READ BEFORE DELETING | ||
Please discuss changes before creating pull requests. This plugin | ||
is stable and feature frozen. We are only accepting bug fixes at | ||
this time. | ||
https://gitter.im/drone/drone | ||
--> | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,8 +22,9 @@ _testmain.go | |
*.exe | ||
*.test | ||
*.prof | ||
.env | ||
|
||
release/* | ||
release/ | ||
vendor/ | ||
|
||
coverage.out | ||
drone-slack |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,9 @@ | ||
FROM alpine:3.6 as alpine | ||
RUN apk add -U --no-cache ca-certificates | ||
FROM plugins/base:multiarch | ||
|
||
FROM scratch | ||
MAINTAINER Drone.IO Community <[email protected]> | ||
|
||
ENV GODEBUG=netdns=go | ||
|
||
COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ | ||
|
||
LABEL org.label-schema.version=latest | ||
LABEL org.label-schema.vcs-url="https://github.com/drone-plugins/drone-slack.git" | ||
LABEL org.label-schema.name="Drone Slack" | ||
LABEL org.label-schema.vendor="Drone.IO Community" | ||
LABEL org.label-schema.schema-version="1.0" | ||
LABEL maintainer="Drone.IO Community <[email protected]>" \ | ||
org.label-schema.name="Drone Slack" \ | ||
org.label-schema.vendor="Drone.IO Community" \ | ||
org.label-schema.schema-version="1.0" | ||
|
||
ADD release/linux/amd64/drone-slack /bin/ | ||
ENTRYPOINT [ "/bin/drone-slack" ] | ||
ENTRYPOINT ["/bin/drone-slack"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,9 @@ | ||
FROM alpine:3.6 as alpine | ||
RUN apk add -U --no-cache ca-certificates | ||
FROM plugins/base:multiarch | ||
|
||
FROM scratch | ||
MAINTAINER Drone.IO Community <[email protected]> | ||
|
||
ENV GODEBUG=netdns=go | ||
|
||
COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ | ||
|
||
LABEL org.label-schema.version=latest | ||
LABEL org.label-schema.vcs-url="https://github.com/drone-plugins/drone-slack.git" | ||
LABEL org.label-schema.name="Drone Slack" | ||
LABEL org.label-schema.vendor="Drone.IO Community" | ||
LABEL org.label-schema.schema-version="1.0" | ||
LABEL maintainer="Drone.IO Community <[email protected]>" \ | ||
org.label-schema.name="Drone Slack" \ | ||
org.label-schema.vendor="Drone.IO Community" \ | ||
org.label-schema.schema-version="1.0" | ||
|
||
ADD release/linux/arm/drone-slack /bin/ | ||
ENTRYPOINT [ "/bin/drone-slack" ] | ||
ENTRYPOINT ["/bin/drone-slack"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,9 @@ | ||
FROM alpine:3.6 as alpine | ||
RUN apk add -U --no-cache ca-certificates | ||
FROM plugins/base:multiarch | ||
|
||
FROM scratch | ||
MAINTAINER Drone.IO Community <[email protected]> | ||
|
||
ENV GODEBUG=netdns=go | ||
|
||
COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ | ||
|
||
LABEL org.label-schema.version=latest | ||
LABEL org.label-schema.vcs-url="https://github.com/drone-plugins/drone-slack.git" | ||
LABEL org.label-schema.name="Drone Slack" | ||
LABEL org.label-schema.vendor="Drone.IO Community" | ||
LABEL org.label-schema.schema-version="1.0" | ||
LABEL maintainer="Drone.IO Community <[email protected]>" \ | ||
org.label-schema.name="Drone Slack" \ | ||
org.label-schema.vendor="Drone.IO Community" \ | ||
org.label-schema.schema-version="1.0" | ||
|
||
ADD release/linux/arm64/drone-slack /bin/ | ||
ENTRYPOINT [ "/bin/drone-slack" ] | ||
ENTRYPOINT ["/bin/drone-slack"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
FROM plugins/base:multiarch | ||
|
||
LABEL maintainer="Drone.IO Community <[email protected]>" \ | ||
org.label-schema.name="Drone Slack" \ | ||
org.label-schema.vendor="Drone.IO Community" \ | ||
org.label-schema.schema-version="1.0" | ||
|
||
ADD release/linux/i386/drone-slack /bin/ | ||
ENTRYPOINT ["/bin/drone-slack"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
FROM microsoft/nanoserver:latest | ||
MAINTAINER Drone.IO Community <[email protected]> | ||
# escape=` | ||
FROM microsoft/nanoserver:10.0.14393.1593 | ||
|
||
ENV GODEBUG=netdns=go | ||
LABEL maintainer="Drone.IO Community <[email protected]>" ` | ||
org.label-schema.name="Drone Slack" ` | ||
org.label-schema.vendor="Drone.IO Community" ` | ||
org.label-schema.schema-version="1.0" | ||
|
||
LABEL org.label-schema.version=latest | ||
LABEL org.label-schema.vcs-url="https://github.com/drone-plugins/drone-slack.git" | ||
LABEL org.label-schema.name="Drone Slack" | ||
LABEL org.label-schema.vendor="Drone.IO Community" | ||
LABEL org.label-schema.schema-version="1.0" | ||
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] | ||
|
||
ADD release/windows/amd64/drone-slack /bin/ | ||
ENTRYPOINT [ "/bin/drone-slack" ] | ||
ADD release\drone-slack.exe c:\drone-slack.exe | ||
ENTRYPOINT [ "c:\\drone-slack.exe" ] |
Oops, something went wrong.