From d2de3104c763be90f999fba0b4d100918945c606 Mon Sep 17 00:00:00 2001 From: Tony Li Date: Mon, 19 Sep 2022 11:44:52 -0700 Subject: [PATCH] Updates (#163) --- .drone.yml | 13 ++++++++++++- CODEOWNERS => .github/CODEOWNERS | 0 CONTRIBUTING.md => .github/CONTRIBUTING.md | 0 .github/dependabot.yml | 4 ++++ README.md | 5 +++-- go.mod | 12 +++++++++++- go.sum | 3 --- 7 files changed, 30 insertions(+), 7 deletions(-) rename CODEOWNERS => .github/CODEOWNERS (100%) rename CONTRIBUTING.md => .github/CONTRIBUTING.md (100%) diff --git a/.drone.yml b/.drone.yml index 4c3548f..6947259 100644 --- a/.drone.yml +++ b/.drone.yml @@ -22,7 +22,7 @@ slack_config: &slack_config image: plugins/slack pull: if-not-exists settings: - channel: dv-cicd + channel: dv-cdp-alerts environment: SLACK_WEBHOOK: from_secret: slack_webhook @@ -50,6 +50,17 @@ steps: event: - tag +- name: docker_build_test + image: plugins/docker + pull: if-not-exists + settings: + dry_run: true + dockerfile: Dockerfile + repo: nytimes/drone-gke + when: + event: + - pull_request + - name: publish_release image: plugins/docker pull: if-not-exists diff --git a/CODEOWNERS b/.github/CODEOWNERS similarity index 100% rename from CODEOWNERS rename to .github/CODEOWNERS diff --git a/CONTRIBUTING.md b/.github/CONTRIBUTING.md similarity index 100% rename from CONTRIBUTING.md rename to .github/CONTRIBUTING.md diff --git a/.github/dependabot.yml b/.github/dependabot.yml index f1b219b..266bac2 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -4,3 +4,7 @@ updates: directory: "/" schedule: interval: "weekly" + - package-ecosystem: "docker" + directory: "/" + schedule: + interval: "weekly" diff --git a/README.md b/README.md index 8f2052d..a431632 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # drone-gke +[![Build Status](https://cloud.drone.io/api/badges/nytimes/drone-gke/status.svg)](https://cloud.drone.io/nytimes/drone-gke) + Drone plugin to deploy container images to Kubernetes on Google Container Engine. For the usage information and a listing of the available options please take a look at [the docs](DOCS.md). @@ -11,7 +13,7 @@ Derive the API endpoints and credentials from the Google credentials and open th - Usage [documentation](DOCS.md) - Docker Hub [release tags](https://hub.docker.com/r/nytimes/drone-gke/tags) - Drone.io [builds](https://cloud.drone.io/nytimes/drone-gke) -- Contributing [documentation](CONTRIBUTING.md) +- Contributing [documentation](.github/CONTRIBUTING.md) ## Releases and versioning @@ -36,7 +38,6 @@ If you want to use a different version, you can specify the version of `kubectl` [sdk]: https://cloud.google.com/sdk/docs/release-notes#23700_2019-03-05 [version-parameter]: DOCS.md#kubectl_version - ## Usage > :warning: For usage within in a `.drone.yml` pipeline, please take a look at [the docs](DOCS.md) diff --git a/go.mod b/go.mod index 0e70040..aed8b5e 100644 --- a/go.mod +++ b/go.mod @@ -1,8 +1,18 @@ module github.com/NYTimes/drone-gke -go 1.12 +go 1.19 require ( github.com/stretchr/testify v1.8.0 github.com/urfave/cli/v2 v2.16.3 ) + +require ( + github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect + github.com/davecgh/go-spew v1.1.1 // indirect + github.com/pmezard/go-difflib v1.0.0 // indirect + github.com/russross/blackfriday/v2 v2.1.0 // indirect + github.com/stretchr/objx v0.4.0 // indirect + github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect + gopkg.in/yaml.v3 v3.0.1 // indirect +) diff --git a/go.sum b/go.sum index 9fd3259..e25c322 100644 --- a/go.sum +++ b/go.sum @@ -1,4 +1,3 @@ -github.com/BurntSushi/toml v1.1.0/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ= github.com/cpuguy83/go-md2man/v2 v2.0.2 h1:p1EgwI/C7NhT0JmVkwCD2ZBK8j4aeHQX2pMHHBfMQ6w= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -18,8 +17,6 @@ github.com/urfave/cli/v2 v2.16.3 h1:gHoFIwpPjoyIMbJp/VFd+/vuD0dAgFK4B6DpEMFJfQk= github.com/urfave/cli/v2 v2.16.3/go.mod h1:1CNUng3PtjQMtRzJO4FMXBQvkGtuYRxxiR9xMa7jMwI= github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 h1:bAn7/zixMGCfxrRTfdpNzjtPYqr8smhKouy9mxVdGPU= github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673/go.mod h1:N3UwUGtsrSj3ccvlPHLoLsHnpR27oXr4ZE984MbSER8= -golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= -golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=