Skip to content

Commit

Permalink
fixed #9 (#10)
Browse files Browse the repository at this point in the history
* fixed #9
added support for monitoring
onbaorded on new shared pipeline

Signed-off-by: raffaelespazzoli <raffaele.spazzoli@gmail.com>

* addes upport for s390x

Signed-off-by: raffaelespazzoli <raffaele.spazzoli@gmail.com>

* fix docker build

Signed-off-by: raffaelespazzoli <raffaele.spazzoli@gmail.com>
  • Loading branch information
raffaelespazzoli authored Jan 27, 2022
1 parent 26a464e commit 9ee4218
Show file tree
Hide file tree
Showing 15 changed files with 90 additions and 519 deletions.
79 changes: 5 additions & 74 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
@@ -1,80 +1,11 @@
name: pull request
on:
on:
pull_request:
branches:
- master
- main
jobs:
build:
runs-on: ubuntu-latest
name: build
steps:

- name: set repo name
shell: bash
run: |
echo "REPOSITORY_NAME=$(basename $GITHUB_REPOSITORY)" >> $GITHUB_ENV
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.16
- name: Check out code into the Go module directory
uses: actions/checkout@v2

# - uses: shivanshs9/setup-k8s-operator-sdk@v1
# with:
# version: "1.9.0" # The operator-sdk version to download (if necessary) and use.

- name: Download operator sdk
shell: bash
env:
RELEASE_VERSION: v1.9.0
run: |
curl -LO https://github.com/operator-framework/operator-sdk/releases/download/${RELEASE_VERSION}/operator-sdk_linux_amd64
chmod +x operator-sdk_linux_amd64
mkdir ${HOME}/bin
mv operator-sdk_linux_amd64 ${HOME}/bin/operator-sdk
echo "${HOME}/bin" >> $GITHUB_PATH
- name: build code
shell: bash
run: make VERSION=latest

- name: build bundle
shell: bash
run: make bundle IMG=quay.io/${{ github.repository_owner }}/$(basename $GITHUB_REPOSITORY):0.0.1 VERSION=0.0.1 DEFAULT_CHANNEL=alpha

- name: verify bundle
shell: bash
run: operator-sdk bundle validate ./bundle --select-optional name=operatorhub

- name: build chart
shell: bash
run: make helmchart VERSION=0.0.1 IMG=quay.io/${{ github.repository_owner }}/$(basename $GITHUB_REPOSITORY):0.0.1

- name: Set up QEMU
uses: docker/setup-qemu-action@v1
with:
platforms: all

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

- name: "Build Operator Image"
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
platforms: linux/amd64,linux/arm64,linux/ppc64le
push: false
tags: "quay.io/${{ github.repository_owner }}/${{ env.REPOSITORY_NAME }}:v0.0.1"

- name: "Build Bundle Image"
uses: docker/build-push-action@v2
with:
context: .
file: ./bundle.Dockerfile
platforms: linux/amd64,linux/arm64,linux/ppc64le
push: false
tags: "quay.io/${{ github.repository_owner }}/${{ env.REPOSITORY_NAME }}-bundle:0.0.1"
jobs:
shared-operator-workflow:
name: shared-operator-workflow
uses: redhat-cop/github-workflows-operators/.github/workflows/pr-operator.yml@v1.0.0
Loading

0 comments on commit 9ee4218

Please sign in to comment.