Skip to content

Commit

Permalink
feat(vendor): switch dep to go module
Browse files Browse the repository at this point in the history
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
  • Loading branch information
appleboy committed Jan 11, 2019
1 parent 4a3c7c0 commit 01004f9
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 53 deletions.
4 changes: 1 addition & 3 deletions .appveyor.yml
Expand Up @@ -11,6 +11,7 @@ environment:
secure: '4YzzahbEiMZQJpOCOd1LAw=='
DOCKER_PASSWORD:
secure: 'VqO/G3Zfslu6zSLdwHKO+Q=='
GO111MODULE: on

install:
- ps: |
Expand All @@ -21,9 +22,6 @@ install:
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-dockerhub.exe
} else {
Expand Down
23 changes: 11 additions & 12 deletions .drone.yml
Expand Up @@ -3,28 +3,24 @@ workspace:
path: src/github.com/drone-plugins/drone-dockerhub

pipeline:
deps:
image: golang:1.10
pull: true
commands:
- go get -u github.com/golang/dep/cmd/dep
- dep ensure

test:
image: golang:1.10
image: golang:1.11
pull: true
environment:
- GO111MODULE=on
commands:
- go vet ./...
- go test -cover ./...

build_linux_amd64:
image: golang:1.10
image: golang:1.11
pull: true
group: build
environment:
- GOOS=linux
- GOARCH=amd64
- CGO_ENABLED=0
- GO111MODULE=on
commands:
- |
if test "${DRONE_TAG}" = ""; then
Expand All @@ -34,13 +30,14 @@ pipeline:
fi
build_linux_i386:
image: golang:1.10
image: golang:1.11
pull: true
group: build
environment:
- GOOS=linux
- GOARCH=386
- CGO_ENABLED=0
- GO111MODULE=on
commands:
- |
if test "${DRONE_TAG}" = ""; then
Expand All @@ -50,13 +47,14 @@ pipeline:
fi
build_linux_arm64:
image: golang:1.10
image: golang:1.11
pull: true
group: build
environment:
- GOOS=linux
- GOARCH=arm64
- CGO_ENABLED=0
- GO111MODULE=on
commands:
- |
if test "${DRONE_TAG}" = ""; then
Expand All @@ -66,14 +64,15 @@ pipeline:
fi
build_linux_arm:
image: golang:1.10
image: golang:1.11
pull: true
group: build
environment:
- GOOS=linux
- GOARCH=arm
- CGO_ENABLED=0
- GOARM=7
- GO111MODULE=on
commands:
- |
if test "${DRONE_TAG}" = ""; then
Expand Down
27 changes: 0 additions & 27 deletions Gopkg.lock

This file was deleted.

11 changes: 0 additions & 11 deletions Gopkg.toml

This file was deleted.

8 changes: 8 additions & 0 deletions go.mod
@@ -0,0 +1,8 @@
module github.com/drone-plugins/drone-dockerhub

require (
github.com/cheekybits/is v0.0.0-20150225183255-68e9c0620927 // indirect
github.com/drone/drone-go v0.0.0-20160502151758-eaa41f7836a1
github.com/matryer/try v0.0.0-20161228173917-9ac251b645a2 // indirect
gopkg.in/matryer/try.v1 v1.0.0-20150601225556-312d2599e12e
)
8 changes: 8 additions & 0 deletions go.sum
@@ -0,0 +1,8 @@
github.com/cheekybits/is v0.0.0-20150225183255-68e9c0620927 h1:SKI1/fuSdodxmNNyVBR8d7X/HuLnRpvvFO0AgyQk764=
github.com/cheekybits/is v0.0.0-20150225183255-68e9c0620927/go.mod h1:h/aW8ynjgkuj+NQRlZcDbAbM1ORAbXjXX77sX7T289U=
github.com/drone/drone-go v0.0.0-20160502151758-eaa41f7836a1 h1:2fZ6NZF8Z37FLn5NIElsW3OELMY2xzQ2XPuXJmnAowE=
github.com/drone/drone-go v0.0.0-20160502151758-eaa41f7836a1/go.mod h1:qVb1k1w9X5jgoGyLtbnfWNnd4XZfAwokxBmiutbpGqw=
github.com/matryer/try v0.0.0-20161228173917-9ac251b645a2 h1:JAEbJn3j/FrhdWA9jW8B5ajsLIjeuEHLi8xE4fk997o=
github.com/matryer/try v0.0.0-20161228173917-9ac251b645a2/go.mod h1:0KeJpeMD6o+O4hW7qJOT7vyQPKrWmj26uf5wMc/IiIs=
gopkg.in/matryer/try.v1 v1.0.0-20150601225556-312d2599e12e h1:bJHzu9Qwc9wQRWJ/WVkJGAfs+riucl/tKAFNxf9pzqk=
gopkg.in/matryer/try.v1 v1.0.0-20150601225556-312d2599e12e/go.mod h1:tve0rTLdGlwnXF7iBO9rbAEyeXvuuPx0n4DvXS/Nw7o=

0 comments on commit 01004f9

Please sign in to comment.