Skip to content

Commit e7aa22c

Browse files
authored
Build and push image to docker hub (#313)
1 parent 77ef45b commit e7aa22c

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

.github/workflows/docker.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Build and Push Docker Image
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*.*.*'
7+
release:
8+
types: [published]
9+
10+
permissions:
11+
contents: read
12+
id-token: write
13+
14+
jobs:
15+
docker:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Build and Push to Docker Hub
21+
uses: grafana/shared-workflows/actions/build-push-to-dockerhub@main
22+
with:
23+
context: .
24+
file: ./Dockerfile
25+
repository: grafana/mcp-grafana
26+
tags: |
27+
latest
28+
${{ github.ref_name }}
29+
push: true

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Build stage
22
FROM golang:1.24-bullseye AS builder
33

4+
LABEL io.modelcontextprotocol.server.name="grafana/mcp-grafana"
5+
46
# Set the working directory
57
WORKDIR /app
68

0 commit comments

Comments
 (0)