update controller-runtime to v0.15 and k8s dep to v0.27 (#478) #276
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: operator-cd | |
on: | |
push: | |
branches: | |
- master | |
tags-ignore: | |
- '*.*' | |
env: | |
GOPATH: /tmp/go | |
jobs: | |
binary: | |
name: Build & push a new operator release | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
- name: Cache dependencies | |
uses: actions/cache@v4 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles ('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go- | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.x' | |
- name: Prepare tools | |
uses: codeready-toolchain/toolchain-cicd/prepare-tools-action@master | |
- name: Release operator | |
uses: codeready-toolchain/toolchain-cicd/release-operator-action@master | |
with: | |
quay-token: ${{ secrets.QUAY_TOKEN }} | |
quay-namespace: codeready-toolchain |