-
Notifications
You must be signed in to change notification settings - Fork 9
48 lines (43 loc) · 1.37 KB
/
build-on-feature-branch.yml
File metadata and controls
48 lines (43 loc) · 1.37 KB
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
name: Build on Feature Branch
on:
push:
branches-ignore:
- main
permissions:
contents: read
jobs:
build-and-export-digest:
permissions:
contents: read
id-token: write
strategy:
fail-fast: false
matrix:
include:
- runnerType: ubuntu-24.04-arm
platform: linux/arm64
- runnerType: ubuntu-24.04
platform: linux/amd64
runs-on: ${{ matrix.runnerType }}
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Build Image (no push)
id: build
uses: grafana/shared-workflows/actions/docker-build-push-image@21ae57f82e5256e5a418406388926d4ba24bccf2 # docker-build-push-image/v0.3.2
with:
registries: dockerhub
platforms: ${{ matrix.platform }}
outputs: "type=image,push-by-digest=true,name-canonical=true,push=false"
push: false
tags: |
type=raw,value=test
include-tags-in-push: false
- name: Export Docker Digest
id: export
uses: grafana/shared-workflows/actions/docker-export-digest@4d53725e812211a661bd89c8f4925c33584e1f45 # docker-export-digest/v0.1.2
with:
digest: ${{ steps.build.outputs.digest }}
platform: ${{ matrix.platform }}