-
Notifications
You must be signed in to change notification settings - Fork 15
36 lines (30 loc) · 934 Bytes
/
build.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
name: build
on:
pull_request:
permissions: {}
jobs:
build:
name: build
runs-on: ubuntu-latest
strategy:
matrix:
image:
- aws-auth
- github-issue-opener
- image-copy-ecr
- image-copy-gcp
- image-diff
- jira-issue-opener
- slack-webhook
- tag-history
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version-file: ${{ matrix.image }}/go.mod
- uses: ko-build/setup-ko@3aebd0597dc1e9d1a26bcfdb7cbeb19c131d3037 # v0.7
- uses: chainguard-dev/actions/setup-registry@main
- working-directory: ${{ matrix.image }}
run: |
KO_DOCKER_REPO=localhost:1338/test ko build --image-refs=ko.images --bare .
echo "KO build $(cat ko.images)"