Skip to content

Commit

Permalink
Merge pull request #819 from grafana/dev
Browse files Browse the repository at this point in the history
Merge dev to main
  • Loading branch information
matiasb authored Nov 9, 2022
2 parents 53bfffe + f3ac66b commit f6e2861
Show file tree
Hide file tree
Showing 106 changed files with 2,972 additions and 1,777 deletions.
9 changes: 0 additions & 9 deletions .dockerignore

This file was deleted.

30 changes: 25 additions & 5 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,15 @@ steps:

- name: Build and Push Engine Docker Image Backend to GCR
image: plugins/docker
environment:
# force docker to use buildkit feature, this will skip build stages that aren't required in the final image (ie. dev & dev-enterprise)
# https://github.com/docker/cli/issues/1134#issuecomment-406449342
DOCKER_BUILDKIT: 1
settings:
repo: us.gcr.io/kubernetes-dev/oncall
dockerfile: engine/Dockerfile
context: engine/
target: prod
config:
from_secret: gcr_admin
depends_on:
Expand All @@ -113,10 +118,15 @@ steps:

- name: Build and Push Engine Docker Image Backend to Dockerhub
image: plugins/docker
environment:
# force docker to use buildkit feature, this will skip build stages that aren't required in the final image (ie. dev & dev-enterprise)
# https://github.com/docker/cli/issues/1134#issuecomment-406449342
DOCKER_BUILDKIT: 1
settings:
repo: grafana/oncall
dockerfile: engine/Dockerfile
context: engine/
target: prod
password:
from_secret: docker_password
username:
Expand Down Expand Up @@ -146,9 +156,9 @@ services:
trigger:
event:
include:
- tag
- push
- pull_request
- tag
- push
- pull_request
ref:
include:
- refs/heads/main
Expand Down Expand Up @@ -196,7 +206,7 @@ steps:
GRAFANA_API_KEY:
from_secret: gcom_plugin_publisher_api_key
commands:
- "curl -f -s -H \"Authorization: Bearer $${GRAFANA_API_KEY}\" -d \"download[any][url]=https://storage.googleapis.com/grafana-oncall-app/releases/grafana-oncall-app-${DRONE_TAG}.zip\" -d \"download[any][md5]=$$(curl -sL https://storage.googleapis.com/grafana-oncall-app/releases/grafana-oncall-app-${DRONE_TAG}.zip | md5sum | cut -d' ' -f1)\" -d url=https://github.com/grafana/oncall/grafana-plugin https://grafana.com/api/plugins"
- 'curl -f -s -H "Authorization: Bearer $${GRAFANA_API_KEY}" -d "download[any][url]=https://storage.googleapis.com/grafana-oncall-app/releases/grafana-oncall-app-${DRONE_TAG}.zip" -d "download[any][md5]=$$(curl -sL https://storage.googleapis.com/grafana-oncall-app/releases/grafana-oncall-app-${DRONE_TAG}.zip | md5sum | cut -d'' '' -f1)" -d url=https://github.com/grafana/oncall/grafana-plugin https://grafana.com/api/plugins'
depends_on:
- sign and package plugin

Expand Down Expand Up @@ -225,10 +235,15 @@ steps:

- name: build and push docker image
image: plugins/docker
environment:
# force docker to use buildkit feature, this will skip build stages that aren't required in the final image (ie. dev & dev-enterprise)
# https://github.com/docker/cli/issues/1134#issuecomment-406449342
DOCKER_BUILDKIT: 1
settings:
repo: grafana/oncall
tags: ${DRONE_TAG}-amd64-linux
dockerfile: engine/Dockerfile
target: prod
context: engine/
password:
from_secret: docker_password
Expand Down Expand Up @@ -262,10 +277,15 @@ steps:

- name: build and push docker image
image: plugins/docker
environment:
# force docker to use buildkit feature, this will skip build stages that aren't required in the final image (ie. dev & dev-enterprise)
# https://github.com/docker/cli/issues/1134#issuecomment-406449342
DOCKER_BUILDKIT: 1
settings:
repo: grafana/oncall
tags: ${DRONE_TAG}-arm64-linux
dockerfile: engine/Dockerfile
target: prod
context: engine/
password:
from_secret: docker_password
Expand Down Expand Up @@ -395,6 +415,6 @@ kind: secret
name: drone_token
---
kind: signature
hmac: 8a060649c132677ba1b5693b5ac6c846c02f9a5bb645fe990b26a7ea42a0fb66
hmac: f77d17560f910f1a99ab8230674dc25c226d2b3c73cb90e63e53fb8ba760d57a

...
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,5 +152,6 @@ jobs:
context: ./engine
file: ./engine/Dockerfile
push: false
target: prod
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
47 changes: 2 additions & 45 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,51 +1,8 @@
# Backend
*/db.sqlite3
engine/oncall_dev.db
*.pyc
venv
.python-version
.env
.env_hobby
.env.dev

.vscode
dump.rdb
.idea
engine/celerybeat-schedule.db
engine/sqlite_data
jupiter_playbooks/*
engine/reports/*.csv
engine/jupiter_playbooks/*

# Frontend dependencies
node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local
.swp

npm-debug.log*
yarn-debug.log*
yarn-error.log*

scripts/gcom.token
scripts/gcom_grafana.token
scripts/gcom_raintank.token

engine/extensions/

grafana-plugin/frontend_enterprise

uwsgi-local.ini
celerybeat-schedule
.env
File renamed without changes.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Change Log

## v1.0.52 (2022-11-09)

- Allow use of API keys as alternative to account auth token for Twilio
- Remove `grafana_plugin_management` Django app
- Enable new schedules UI
- Bug fixes

## v1.0.51 (2022-11-05)

- Bug Fixes
Expand Down
Loading

0 comments on commit f6e2861

Please sign in to comment.