-
Notifications
You must be signed in to change notification settings - Fork 250
45 lines (38 loc) · 1.22 KB
/
check-linux-build-image.yml
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
name: Check Linux build image
on:
pull_request:
paths:
- 'tools/build-image/*'
jobs:
check-linux-build-image:
runs-on: github-hosted-ubuntu-x64-large
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Remove unnecessary files
run: |
rm -rf /usr/share/dotnet
rm -rf "$AGENT_TOOLSDIRECTORY"
rm -rf /opt/ghc
rm -rf "/usr/local/share/boost"
rm -rf /opt/hostedtoolcache
- name: Setup QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Create test Linux build image
uses: docker/build-push-action@v6
with:
context: ./tools/build-image
push: false
tags: grafana/alloy-build-image:latest
build-args: |
GO_RUNTIME=golang:1.23.5-bullseye
- name: Create test Linux build image for boring crypto
uses: docker/build-push-action@v6
with:
context: ./tools/build-image
push: false
tags: grafana/alloy-build-image:latest
build-args: |
GO_RUNTIME=mcr.microsoft.com/oss/go/microsoft/golang:1.23.5-bullseye