-
Notifications
You must be signed in to change notification settings - Fork 217
39 lines (34 loc) · 1006 Bytes
/
ko-test.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
name: ko-test
on:
pull_request:
branches:
- main
jobs:
ko-test:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: docker meta
id: meta
uses: docker/[email protected]
with:
images: fsouza/fake-gcs-server
sep-tags: ","
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
- uses: actions/[email protected]
id: setup-go
with:
go-version: "1.21"
- uses: ko-build/[email protected]
- name: ko build
run: |
ko build --platform=all --bare --tags="$(echo "${RAW_TAGS}" | sed -e 's;fsouza/fake-gcs-server:;;g')"
env:
KO_DEFAULTBASEIMAGE: fsouza/alpine-base
KO_DOCKER_REPO: ko.local/fsouza/fake-gcs-server
RAW_TAGS: ${{ steps.meta.outputs.tags }}