Skip to content

Commit

Permalink
Fix build failure (#256)
Browse files Browse the repository at this point in the history
- No point in fixing the Kafka Authorizer build as it's a deprecated module.
- Remove custom OPA download script and use setup-opa
- Use latest Go and latest OPA versions

Signed-off-by: Anders Eknert <[email protected]>
  • Loading branch information
anderseknert authored Jul 25, 2024
1 parent b3e3986 commit 98484a5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 42 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,23 @@ on:
jobs:
build:
name: Build
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Check out code
uses: actions/checkout@v4

- name: Install Go
uses: actions/setup-go@v5
with:
go-version: '^1.15.5'
go-version: '^1.22.5'

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Install OPA
run: ./build/install-opa.sh
uses: open-policy-agent/setup-opa@v2
with:
version: v0.66.0

- name: Make build
run: PATH=$PATH:$PWD:/home/runner/.local/bin make build
39 changes: 0 additions & 39 deletions build/install-opa.sh

This file was deleted.

3 changes: 3 additions & 0 deletions kafka_authorizer/Makefile → kafka_authorizer/Makefile.old
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Since this is a deprecated contrib module, this is not built as part of the main
# build process, and this file is here only for historical purposes.

VERSION := $(shell ./scripts/get-version.sh)
REPOSITORY := openpolicyagent/demo-kafka

Expand Down

0 comments on commit 98484a5

Please sign in to comment.