This repository has been archived by the owner on Sep 15, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Initial implementation #1
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
73a8a38
Add Github files
donny-dont 1067c61
Add Dockerfiles
donny-dont a7d975c
Update gitignore
donny-dont afb870e
Add an implementation
donny-dont 42b348b
Add .drone.yml
donny-dont 5959395
Add deps
donny-dont 541a229
Print dep status
donny-dont cefe4b7
Properly set version
donny-dont 0a02f7a
Add additional badges
donny-dont 9282207
Drop comments in Gopkg.toml
donny-dont 05824f2
Use == instead of len == 0
donny-dont 2ac06fe
Remove cmd slice
donny-dont 8290646
Move NPM related fields to its own struct
donny-dont 6cde84f
Create a greenkeeper config struct
donny-dont c066aa7
Add additional greenkeeper options
donny-dont 62189e1
Organize the NPM struct
donny-dont 7c618fe
Add build information
donny-dont 353ab31
Setup the environment for a greenkeeper command
donny-dont cd69663
Fix npm logic
donny-dont 5ccc7d1
Update documentation
donny-dont File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,149 @@ | ||
workspace: | ||
base: /go | ||
path: src/github.com/drone-plugins/drone-greenkeeper | ||
|
||
pipeline: | ||
deps: | ||
image: golang:1.10 | ||
pull: true | ||
commands: | ||
- go get -u github.com/golang/dep/cmd/dep | ||
- dep ensure | ||
- dep status | ||
|
||
test: | ||
image: golang:1.10 | ||
pull: true | ||
commands: | ||
- go vet ./... | ||
- go test -cover ./... | ||
|
||
build_linux_amd64: | ||
image: golang:1.10 | ||
pull: true | ||
group: build | ||
environment: | ||
- GOOS=linux | ||
- GOARCH=amd64 | ||
- CGO_ENABLED=0 | ||
commands: | ||
- | | ||
if test "${DRONE_TAG}" = ""; then | ||
go build -v -ldflags "-X main.build=${DRONE_BUILD_NUMBER}" -a -o release/linux/amd64/drone-greenkeeper | ||
else | ||
go build -v -ldflags "-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}" -a -o release/linux/amd64/drone-greenkeeper | ||
fi | ||
|
||
# build_linux_i386: | ||
# image: golang:1.10 | ||
# pull: true | ||
# group: build | ||
# environment: | ||
# - GOOS=linux | ||
# - GOARCH=386 | ||
# - CGO_ENABLED=0 | ||
# commands: | ||
# - | | ||
# if test "${DRONE_TAG}" = ""; then | ||
# go build -v -ldflags "-X main.build=${DRONE_BUILD_NUMBER}" -a -o release/linux/i386/drone-greenkeeper | ||
# else | ||
# go build -v -ldflags "-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}" -a -o release/linux/i386/drone-greenkeeper | ||
# fi | ||
|
||
# build_linux_arm64: | ||
# image: golang:1.10 | ||
# pull: true | ||
# group: build | ||
# environment: | ||
# - GOOS=linux | ||
# - GOARCH=arm64 | ||
# - CGO_ENABLED=0 | ||
# commands: | ||
# - | | ||
# if test "${DRONE_TAG}" = ""; then | ||
# go build -v -ldflags "-X main.build=${DRONE_BUILD_NUMBER}" -a -o release/linux/arm64/drone-greenkeeper | ||
# else | ||
# go build -v -ldflags "-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}" -a -o release/linux/arm64/drone-greenkeeper | ||
# fi | ||
|
||
# build_linux_arm: | ||
# image: golang:1.10 | ||
# pull: true | ||
# group: build | ||
# environment: | ||
# - GOOS=linux | ||
# - GOARCH=arm | ||
# - CGO_ENABLED=0 | ||
# - GOARM=7 | ||
# commands: | ||
# - | | ||
# if test "${DRONE_TAG}" = ""; then | ||
# go build -v -ldflags "-X main.build=${DRONE_BUILD_NUMBER}" -a -o release/linux/arm/drone-greenkeeper | ||
# else | ||
# go build -v -ldflags "-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}" -a -o release/linux/arm/drone-greenkeeper | ||
# fi | ||
|
||
publish_linux_amd64: | ||
image: plugins/docker:17.12 | ||
pull: true | ||
secrets: [ docker_username, docker_password ] | ||
group: docker | ||
repo: plugins/greenkeeper | ||
auto_tag: true | ||
auto_tag_suffix: linux-amd64 | ||
dockerfile: Dockerfile | ||
when: | ||
event: [ push, tag ] | ||
|
||
# publish_linux_i386: | ||
# image: plugins/docker:17.12 | ||
# pull: true | ||
# secrets: [ docker_username, docker_password ] | ||
# group: docker | ||
# repo: plugins/greenkeeper | ||
# auto_tag: true | ||
# auto_tag_suffix: linux-i386 | ||
# dockerfile: Dockerfile.i386 | ||
# when: | ||
# event: [ push, tag ] | ||
|
||
# publish_linux_arm64: | ||
# image: plugins/docker:17.12 | ||
# pull: true | ||
# secrets: [ docker_username, docker_password ] | ||
# group: docker | ||
# repo: plugins/greenkeeper | ||
# auto_tag: true | ||
# auto_tag_suffix: linux-arm64 | ||
# dockerfile: Dockerfile.arm64 | ||
# when: | ||
# event: [ push, tag ] | ||
|
||
# publish_linux_arm: | ||
# image: plugins/docker:17.12 | ||
# pull: true | ||
# secrets: [ docker_username, docker_password ] | ||
# group: docker | ||
# repo: plugins/greenkeeper | ||
# auto_tag: true | ||
# auto_tag_suffix: linux-arm | ||
# dockerfile: Dockerfile.arm | ||
# when: | ||
# event: [ push, tag ] | ||
|
||
manifests: | ||
image: plugins/manifest:1 | ||
pull: true | ||
secrets: [ docker_username, docker_password ] | ||
spec: manifest.tmpl | ||
auto_tag: true | ||
ignore_missing: true | ||
when: | ||
event: [ push, tag ] | ||
|
||
microbadger: | ||
image: plugins/webhook:1 | ||
pull: true | ||
secrets: [ webhook_url ] | ||
when: | ||
status: [ success ] |
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 |
---|---|---|
@@ -1,14 +1,30 @@ | ||
# Binaries for programs and plugins | ||
*.exe | ||
*.dll | ||
# Compiled Object files, Static and Dynamic libs (Shared Objects) | ||
*.o | ||
*.a | ||
*.so | ||
*.dylib | ||
|
||
# Test binary, build with `go test -c` | ||
# Folders | ||
_obj | ||
_test | ||
|
||
# Architecture specific extensions/prefixes | ||
*.[568vq] | ||
[568vq].out | ||
|
||
*.cgo1.go | ||
*.cgo2.c | ||
_cgo_defun.c | ||
_cgo_gotypes.go | ||
_cgo_export.* | ||
|
||
_testmain.go | ||
|
||
*.exe | ||
*.test | ||
*.prof | ||
|
||
# Output of the go coverage tool, specifically when used with LiteIDE | ||
*.out | ||
release/ | ||
vendor/ | ||
|
||
# Project-local glide cache, RE: https://github.com/Masterminds/glide/issues/736 | ||
.glide/ | ||
coverage.out | ||
drone-greenkeeper |
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,13 @@ | ||
FROM plugins/base:amd64 | ||
|
||
LABEL maintainer="Drone.IO Community <drone-dev@googlegroups.com>" \ | ||
org.label-schema.name="Drone Greenkeeper" \ | ||
org.label-schema.vendor="Drone.IO Community" \ | ||
org.label-schema.schema-version="1.0" | ||
|
||
RUN apk add --no-cache git nodejs nodejs-npm yarn | ||
RUN npm install -g npm@latest \ | ||
npm install -g donny-dont/greenkeeper-lockfile#feat/drone-ci | ||
|
||
ADD release/linux/amd64/drone-greenkeeper /bin/ | ||
ENTRYPOINT ["/bin/drone-greenkeeper"] |
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,13 @@ | ||
FROM plugins/base:arm64 | ||
|
||
LABEL maintainer="Drone.IO Community <drone-dev@googlegroups.com>" \ | ||
org.label-schema.name="Drone Greenkeeper" \ | ||
org.label-schema.vendor="Drone.IO Community" \ | ||
org.label-schema.schema-version="1.0" | ||
|
||
RUN apk add --no-cache git nodejs nodejs-npm yarn | ||
RUN npm install -g npm@latest \ | ||
npm install -g donny-dont/greenkeeper-lockfile#feat/drone-ci | ||
|
||
ADD release/linux/arm64/drone-greenkeeper /bin/ | ||
ENTRYPOINT ["/bin/drone-greenkeeper"] |
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,13 @@ | ||
FROM plugins/base:multiarch | ||
|
||
LABEL maintainer="Drone.IO Community <drone-dev@googlegroups.com>" \ | ||
org.label-schema.name="Drone Greenkeeper" \ | ||
org.label-schema.vendor="Drone.IO Community" \ | ||
org.label-schema.schema-version="1.0" | ||
|
||
RUN apk add --no-cache git nodejs nodejs-npm yarn | ||
RUN npm install -g npm@latest \ | ||
npm install -g donny-dont/greenkeeper-lockfile#feat/drone-ci | ||
|
||
ADD release/linux/i386/drone-greenkeeper /bin/ | ||
ENTRYPOINT ["/bin/drone-greenkeeper"] |
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,14 @@ | ||
# escape=` | ||
FROM microsoft/nanoserver:10.0.14393.1593 | ||
|
||
LABEL maintainer="Drone.IO Community <drone-dev@googlegroups.com>" ` | ||
org.label-schema.name="Drone Greenkeeper" ` | ||
org.label-schema.vendor="Drone.IO Community" ` | ||
org.label-schema.schema-version="1.0" | ||
|
||
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] | ||
|
||
# TODO: install required tools | ||
|
||
ADD release\drone-greenkeeper.exe c:\drone-greenkeeper.exe | ||
ENTRYPOINT [ "c:\\drone-greenkeeper.exe" ] |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,11 @@ | ||
[[constraint]] | ||
name = "github.com/sirupsen/logrus" | ||
version = "1.0.5" | ||
|
||
[[constraint]] | ||
name = "github.com/urfave/cli" | ||
version = "1.20.0" | ||
|
||
[prune] | ||
go-tests = true | ||
unused-packages = true |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Waiting on greenkeeperio/greenkeeper-lockfile#141 to merge before changing the endpoint.