forked from grafana/grafana
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (50 loc) · 1.4 KB
/
pr.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: pr
on:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
steps:
-
name: Checkout
uses: actions/checkout@v3
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
# this might remove tools that are actually needed,
# if set to "true" but frees about 6 GB
tool-cache: false
# all of these default to true, but feel free to set to
# "false" if necessary for your workflow
android: true
dotnet: true
haskell: true
large-packages: true
docker-images: true
swap-storage: true
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: arm64
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Get Grafana Version
run: echo "GF_VERSION=$(npm pkg get version | tr -d '"')" >> $GITHUB_ENV
-
name: Build Docker Image
uses: docker/build-push-action@v5
with:
context: .
push: false
target: groundcover
cache-from: type=gha
cache-to: type=gha,mode=max
platforms: linux/amd64,linux/arm64
build-args: GF_VERSION=${{ env.GF_VERSION }}
tags: grafana-groundcover