-
-
Notifications
You must be signed in to change notification settings - Fork 4
47 lines (44 loc) · 1.27 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
name: Build
on:
pull_request:
env:
REGISTRY: ghcr.io
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v5
with:
go-version: 1.23
# You can test your matrix by printing the current Go version
- name: Display Go version
run: go version
- name: Build it
run: make V=1
build-operator-container:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v5
with:
go-version: 1.23
- name: Build it
run: make V=1
- name: Extract metadata (Operator tags, labels) for Docker
id: meta_operator
uses: docker/metadata-action@369eb591f429131d6889c46b94e711f089e6ca96
with:
images: ${{ env.REGISTRY }}/hyperspike/valkey-operator:${{ github.sha }}
- name: Build Operator image
uses: docker/build-push-action@67a2d409c0a876cbe6b11854e3e25193efe4e62d
id: docker_build_operator
with:
file: Dockerfile.controller
context: .
push: false
visibility: public
tags: ${{ steps.meta_operator.outputs.images }}
labels: ${{ steps.meta_operator.outputs.labels }}