Skip to content

Commit 90eaa02

Browse files
committed
Changes to align with sdk 1.0/CoP
1 parent dcb4a1b commit 90eaa02

25 files changed

+1160
-755
lines changed

.github/workflows/group-sync-operator.yml

-41
This file was deleted.

.github/workflows/pr.yml

+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: pull request
2+
on:
3+
pull_request:
4+
branches:
5+
- master
6+
- main
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
name: build
11+
steps:
12+
- name: set repo name
13+
shell: bash
14+
run: |
15+
echo "REPOSITORY_NAME=$(basename $GITHUB_REPOSITORY)" >> $GITHUB_ENV
16+
17+
- name: Set up Go 1.x
18+
uses: actions/setup-go@v2
19+
with:
20+
go-version: ^1.14
21+
- name: Check out code into the Go module directory
22+
uses: actions/checkout@v2
23+
24+
- name: Download operator sdk
25+
shell: bash
26+
env:
27+
RELEASE_VERSION: v1.2.0
28+
run: |
29+
curl -LO https://github.com/operator-framework/operator-sdk/releases/download/${RELEASE_VERSION}/operator-sdk-${RELEASE_VERSION}-x86_64-linux-gnu
30+
chmod +x operator-sdk-${RELEASE_VERSION}-x86_64-linux-gnu
31+
mkdir ${HOME}/bin
32+
mv operator-sdk-${RELEASE_VERSION}-x86_64-linux-gnu ${HOME}/bin/operator-sdk
33+
echo "${HOME}/bin" >> $GITHUB_PATH
34+
35+
- name: Download compatible Helm version
36+
shell: bash
37+
env:
38+
HELM_VERSION: v3.3.0
39+
run: |
40+
curl -sSL https://get.helm.sh/helm-${HELM_VERSION}-linux-amd64.tar.gz | tar vxz \
41+
&& sudo mv -v linux-amd64/helm /usr/local/bin/helm \
42+
&& rm -vrf linux-amd64
43+
44+
- name: build code
45+
shell: bash
46+
run: make VERSION=latest
47+
48+
- name: build bundle
49+
shell: bash
50+
run: make bundle IMG=quay.io/${{ github.repository_owner }}/$(basename $GITHUB_REPOSITORY):0.0.1 VERSION=0.0.1 DEFAULT_CHANNEL=alpha
51+
52+
- name: verify bundle
53+
shell: bash
54+
run: operator-sdk bundle validate ./bundle --select-optional name=operatorhub
55+
56+
- name: build chart
57+
shell: bash
58+
run: make helmchart VERSION=0.0.1 IMG=quay.io/${{ github.repository_owner }}/$(basename $GITHUB_REPOSITORY):0.0.1

0 commit comments

Comments
 (0)