-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated to current build process (#2)
* Dropped vendoring directory * Updated to current build process
- Loading branch information
1 parent
95de726
commit 8616c56
Showing
89 changed files
with
328 additions
and
9,578 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-gitea-release' | ||
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-gitea-release.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-gitea-release.exe | ||
} | ||
docker pull microsoft/nanoserver:10.0.14393.1593 | ||
docker build -f Dockerfile.windows -t plugins/gitea-release:windows-amd64 . | ||
test_script: | ||
- ps: | | ||
docker run --rm plugins/gitea-release: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/gitea-release:windows-amd64 | ||
docker tag plugins/gitea-release:windows-amd64 plugins/gitea-release:$major.$minor.$patch-windows-amd64 | ||
docker push plugins/gitea-release:$major.$minor.$patch-windows-amd64 | ||
docker tag plugins/gitea-release:windows-amd64 plugins/gitea-release:$major.$minor-windows-amd64 | ||
docker push plugins/gitea-release:$major.$minor-windows-amd64 | ||
docker tag plugins/gitea-release:windows-amd64 plugins/gitea-release:$major-windows-amd64 | ||
docker push plugins/gitea-release:$major-windows-amd64 | ||
} else { | ||
if ( $env:APPVEYOR_REPO_BRANCH -eq 'master' ) { | ||
docker push plugins/gitea-release: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
Empty file.
Empty file.
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-gitea-release |
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,11 +1,9 @@ | ||
FROM plugins/base:multiarch | ||
MAINTAINER Drone.IO Community <[email protected]> | ||
|
||
LABEL org.label-schema.version=latest | ||
LABEL org.label-schema.vcs-url="https://github.com/drone-plugins/drone-gitea-release.git" | ||
LABEL org.label-schema.name="Drone Gitea Release" | ||
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 Gitea Release" \ | ||
org.label-schema.vendor="Drone.IO Community" \ | ||
org.label-schema.schema-version="1.0" | ||
|
||
ADD release/linux/amd64/drone-gitea-release /bin/ | ||
ENTRYPOINT [ "/bin/drone-gitea-release" ] | ||
ENTRYPOINT ["/bin/drone-gitea-release"] |
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,11 +1,9 @@ | ||
FROM plugins/base:multiarch | ||
MAINTAINER Drone.IO Community <[email protected]> | ||
|
||
LABEL org.label-schema.version=latest | ||
LABEL org.label-schema.vcs-url="https://gitea.com/drone-plugins/drone-gitea-release.git" | ||
LABEL org.label-schema.name="Drone Gitea Release" | ||
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 Gitea Release" \ | ||
org.label-schema.vendor="Drone.IO Community" \ | ||
org.label-schema.schema-version="1.0" | ||
|
||
ADD release/linux/arm/drone-gitea-release /bin/ | ||
ENTRYPOINT [ "/bin/drone-gitea-release" ] |
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,11 +1,9 @@ | ||
FROM plugins/base:multiarch | ||
MAINTAINER Drone.IO Community <[email protected]> | ||
|
||
LABEL org.label-schema.version=latest | ||
LABEL org.label-schema.vcs-url="https://github.com/drone-plugins/drone-gitea-release.git" | ||
LABEL org.label-schema.name="Drone Gitea Release" | ||
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 Gitea Release" \ | ||
org.label-schema.vendor="Drone.IO Community" \ | ||
org.label-schema.schema-version="1.0" | ||
|
||
ADD release/linux/arm64/drone-gitea-release /bin/ | ||
ENTRYPOINT [ "/bin/drone-gitea-release" ] |
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:i386 | ||
|
||
LABEL maintainer="Drone.IO Community <[email protected]>" \ | ||
org.label-schema.name="Drone Gitea Release" \ | ||
org.label-schema.vendor="Drone.IO Community" \ | ||
org.label-schema.schema-version="1.0" | ||
|
||
ADD release/linux/i386/drone-gitea-release /bin/ | ||
ENTRYPOINT ["/bin/drone-gitea-release"] |
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,11 +1,12 @@ | ||
FROM microsoft/nanoserver:latest | ||
MAINTAINER Drone.IO Community <[email protected]> | ||
# escape=` | ||
FROM microsoft/nanoserver:10.0.14393.1593 | ||
|
||
LABEL org.label-schema.version=latest | ||
LABEL org.label-schema.vcs-url="https://github.com/drone-plugins/drone-gitea-release.git" | ||
LABEL org.label-schema.name="Drone Gitea Release" | ||
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 Gitea Release" ` | ||
org.label-schema.vendor="Drone.IO Community" ` | ||
org.label-schema.schema-version="1.0" | ||
|
||
ADD release/windows/amd64/drone-gitea-release /bin/ | ||
ENTRYPOINT [ "/bin/drone-gitea-release" ] | ||
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] | ||
|
||
ADD release\drone-gitea-release.exe c:\drone-gitea-release.exe | ||
ENTRYPOINT [ "c:\\drone-gitea-release.exe" ] |
Oops, something went wrong.