forked from openstack-k8s-operators/nova-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (31 loc) · 1.23 KB
/
build-operator-dont-publish.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
name: Build operator without publishing it
on:
pull_request:
branches:
- '*'
jobs:
build-nova-operator-with-bunlde-and-index:
name: Build
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.19.x
- name: Checkout nova-operator repository
uses: actions/checkout@v3
- name: Build
env:
# By not providing any remote repository here the build artifact will not be pushed
IMAGE_TAG_BASE: nova-operator
# To avoid getting rate limited during kustomize install
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Ideally we would add catalog-build target at the end but that requires
# the bundle to be pushed to a registry due to opm limitations:
# https://github.com/operator-framework/operator-registry/issues/933
# Having a local registry for the catalog-build is would require a
# registry with TLS support or we would need to modify the catalog-build
# target to add flags to the opm call. None of which worth the effort
# since right now I don't how a change of this repo could break that
# step.
run: make manifests generate build docker-build bundle bundle-build