Skip to content

Commit f2c557a

Browse files
committed
Adding workflow files
1 parent 78d99a6 commit f2c557a

File tree

2 files changed

+30
-9
lines changed

2 files changed

+30
-9
lines changed

.github/workflows/base_pr.yaml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,6 @@ on:
3232
required: true
3333
type: string
3434

35-
BUILD_CUSTOM_CATALOG:
36-
description: Build custom catalog
37-
default: false
38-
required: false
39-
type: boolean
40-
4135
OPERATOR_SDK_VERSION:
4236
description: Operator SDK version to use
4337
default: "v1.32.0"
@@ -165,18 +159,15 @@ jobs:
165159
echo "GIT_TAG=$(echo ${tag})" >> $GITHUB_OUTPUT
166160
167161
- name: Install CLI tools from OpenShift Mirror
168-
if: ${{ inputs.BUILD_CUSTOM_CATALOG }}
169162
uses: redhat-actions/openshift-tools-installer@v1
170163
with:
171164
source: "github"
172165
operator-sdk: ${{ inputs.OPERATOR_SDK_VERSION }}
173166
opm: ${{ inputs.OPM_VERSION }}
174167

175168
- name: Build and Push Bundle
176-
if: ${{ inputs.BUILD_CUSTOM_CATALOG }}
177169
run: make bundle bundle-build bundle-push
178170
env:
179-
IMAGE_DIGEST: ${{ steps.build_and_push.outputs.digest }}
180171
PR_TAG: -${{ steps.generate_tag_for_catalog.outputs.GIT_TAG }}
181172

182173
- name: Comment on PR

.github/workflows/pull_request.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Pull Request
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
- release
8+
paths-ignore:
9+
- '*.md'
10+
- 'docs/'
11+
- 'examples/'
12+
- 'hack/'
13+
14+
jobs:
15+
operator-pull-request:
16+
name: Operator Pull Request
17+
# uses: stakater/.github/.github/workflows/operator_pull_request.yaml@main
18+
uses: ./base_pr.yaml.yaml@main
19+
secrets:
20+
CONTAINER_REGISTRY_URL: ghcr.io/stakater
21+
CONTAINER_REGISTRY_USERNAME: stakater-user
22+
CONTAINER_REGISTRY_PASSWORD: ${{ secrets.GHCR_TOKEN }}
23+
SLACK_WEBHOOK_URL: ${{ secrets.STAKATER_DELIVERY_SLACK_WEBHOOK }}
24+
with:
25+
GOLANG_VERSION: ~1.21
26+
DOCKERFILE_PATH: Dockerfile
27+
GOLANG_CI_LINT_VERSION: v1.53.3
28+
Run_GOLANG_CI_LINT: false
29+
RUN_GOLANG_TESTS: false
30+
OPERATOR_SDK_VERSION: v1.36.1

0 commit comments

Comments
 (0)