Skip to content

Commit

Permalink
Updates (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
tonglil authored Sep 20, 2022
1 parent 9131fe0 commit 3feedb2
Show file tree
Hide file tree
Showing 12 changed files with 369 additions and 230 deletions.
119 changes: 76 additions & 43 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -1,56 +1,89 @@
---
kind: pipeline
name: default

platform:
os: linux
arch: amd64

workspace:
base: /go
path: src/github.com/nytimes/drone-gae

go_config: &go_config
image: golang:1
pull: if-not-exists
environment:
- GO111MODULE=on
- GOPROXY=https://proxy.golang.org
- CGO_ENABLED=0
GO111MODULE: on
GOPROXY: https://proxy.golang.org
CGO_ENABLED: 0

slack_config: &slack_config
image: plugins/slack
channel: dv-notifications
secrets: [slack_webhook]

pipeline:
test:
<<: *go_config
commands:
- go mod download
- go test -cover -vet all

build:
<<: *go_config
commands:
- go build -a -ldflags "-X main.version=${DRONE_TAG:-other} -X main.rev=${DRONE_COMMIT}"
when:
branch: master

build_release:
<<: *go_config
commands:
- go build -a -ldflags "-X main.version=${DRONE_TAG:-other} -X main.rev=${DRONE_COMMIT}"
when:
event: tag

publish_release:
image: plugins/docker
repo: nytimes/drone-gae
pull: if-not-exists
settings:
channel: dv-cdp-alerts
environment:
SLACK_WEBHOOK:
from_secret: slack_webhook

steps:
- <<: *go_config
name: test
commands:
- go mod download
- go test -cover -vet all

- <<: *go_config
name: build
commands:
- go build -a -ldflags "-X main.version=n/a -X main.rev=${DRONE_COMMIT}"
when:
branch:
- main

- <<: *go_config
name: build_release
commands:
- go build -a -ldflags "-X main.version=${DRONE_TAG} -X main.rev=${DRONE_COMMIT}"
when:
event:
- tag

- name: docker_build_test
image: plugins/docker
pull: if-not-exists
settings:
dry_run: true
dockerfile: Dockerfile
repo: nytimes/drone-gae
when:
event:
- pull_request

- name: publish_release
pull: if-not-exists
image: plugins/docker
settings:
auto_tag: true
secrets:
- docker_username
- docker_password

slack:
<<: *slack_config
when:
branch: master

slack_tag:
<<: *slack_config
when:
event: tag
dockerfile: Dockerfile
repo: nytimes/drone-gae
environment:
DOCKER_PASSWORD:
from_secret: docker_password
DOCKER_USERNAME:
from_secret: docker_username

- <<: *slack_config
name: slack
when:
branch:
- main

- <<: *slack_config
name: slack_tag
when:
event:
- tag

...
File renamed without changes.
File renamed without changes.
29 changes: 29 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
name: Bug report
about: Create a report to help us improve

---

**Describe the bug**
A clear and concise description of what the bug is.

**To reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Version (please complete the following information):**
- Drone: [e.g. 0.8]
- drone-gke: [e.g. latest, 0.8.5]
- Kubernetes: [output from plugin running `kubectl version`]

**Additional context**
Add any other context about the problem here.
17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
name: Feature request
about: Suggest an idea for this project

---

**Is your feature request related to a problem?**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: 2
updates:
- package-ecosystem: "gomod"
directory: "/"
schedule:
interval: "weekly"
- package-ecosystem: "docker"
directory: "/"
schedule:
interval: "weekly"
15 changes: 15 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!--
Hi there,
Thank you for opening a pull request, we will get back to you as soon as possible!
-->

Did you update the tests?
- [ ] yes
- [ ] no
- [ ] n/a

Did you update the docs?
- [ ] yes
- [ ] no
- [ ] n/a
179 changes: 0 additions & 179 deletions DOCS-4.md

This file was deleted.

Loading

0 comments on commit 3feedb2

Please sign in to comment.