Skip to content

makefile: add target to create a new deps bundle #1841

makefile: add target to create a new deps bundle

makefile: add target to create a new deps bundle #1841

Workflow file for this run

---
name: image-builder
on:
push:
branches: ['main', 'release-*']
pull_request:
branches: ['*']
jobs:
docker-build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
go: ["1.21", "1.22"]
steps:
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Build operator docker image
run: make docker-build
bundle-build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
go: ["1.21", "1.22"]
steps:
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Build operator bundle docker image
run: |
make bundle-build
msg='Uncommitted bundle changes. run `make bundle` and commit results.'
git diff --exit-code bundle || (echo -e '\e[31m'"$msg"; exit 1)
catalog-build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
go: ["1.21", "1.22"]
steps:
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Build catalog docker image
env:
IMAGE_REGISTRY: localhost:5000
OPM_RENDER_OPTS: --use-http
run: |
docker run -d -p 5000:5000 --name registry registry:2
make bundle-build bundle-push catalog-build catalog-deps-build
sed -i 's|localhost:5000|quay.io|g' catalog/odf-dependencies.yaml
msg='Uncommitted catalog changes. run `make catalog` and commit results.'
git diff --exit-code catalog || (echo -e '\e[31m'"$msg"; exit 1)