This file contains hidden or 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
apiVersion: triggers.tekton.dev/v1alpha1 | |
kind: TriggerTemplate | |
metadata: | |
generateName: pipeline-template-git-pr- | |
spec: | |
params: | |
- name: git-repo-url | |
- name: pullreq-sha | |
- name: pullreq-action | |
- name: pullreq-number |
This file contains hidden or 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
apiVersion: operators.coreos.com/v1alpha1 | |
kind: CatalogSource | |
metadata: | |
name: praveen-operators | |
namespace: openshift-marketplace | |
spec: | |
sourceType: grpc | |
image: quay.io/praveen4g0/redhat-operators:v1 | |
displayName: praveen-operator-sources | |
sourceType: grpc |
This file contains hidden or 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
#!/bin/sh | |
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd)" | |
if [ -f $DIR/users.htpasswd ]; then | |
echo -e "users.htpasswd already exists." | |
else | |
echo -e "Downloading users.htpasswd..." | |
curl -s https://gist.githubusercontent.com/praveen4g0/b42f98246e05282e3595ff6572adb658/raw/4ab72c9259abfbebb5347c7325a210c45fc16120/users.htpasswd > $DIR/users.htpasswd | |
echo -e "Done!" |
This file contains hidden or 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
#!/usr/bin/env bash | |
set -euo pipefail | |
MIRROR_REG=${MIRROR_REG:-} | |
PRODUCT_NAME=${PRODUCT_NAME:-pipeline} | |
INDEX=${INDEX:-} | |
BREW_IIB_PREFIX="brew.registry.redhat.io/rh-osbs/iib" | |
REGISTRY_IMAGE=$BREW_IIB_PREFIX:$INDEX | |
OUTPUT_IMAGE=$MIRROR_REG/rh-osbs/iib:$INDEX |
This file contains hidden or 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
#!/usr/bin/env bash | |
set -euo pipefail | |
BREW_IIB_PREFIX="brew.registry.redhat.io/rh-osbs/iib" | |
REGISTRY=${REGISTRY:-"brew.registry.redhat.io"} | |
ENVSTAGE="stage" | |
if [[ ${ENVIRONMENT} = ${ENVSTAGE} ]]; then |
This file contains hidden or 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
#!/usr/bin/env bash | |
set -euo pipefail | |
MIRROR_REG=${MIRROR_REG:-} | |
PRODUCT_NAME=${PRODUCT_NAME:-pipeline} | |
INDEX=${INDEX:-} | |
BREW_IIB_PREFIX="brew.registry.redhat.io/rh-osbs/iib" | |
REGISTRY_IMAGE=$BREW_IIB_PREFIX:$INDEX | |
OUTPUT_IMAGE=$MIRROR_REG/rh-osbs/iib:$INDEX |
This file contains hidden or 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
#!/usr/bin/env bash | |
set -euo pipefail | |
REG_NAMESPACE=${REG_NAMESPACE:-"rh-verified-operators"} | |
TOKEN=${TOKEN:-} | |
test -z "${TOKEN}" && { | |
echo "TOKEN env variable is required" | |
exit 1 | |
} |
This file contains hidden or 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
--- | |
apiVersion: v1 | |
kind: PersistentVolumeClaim | |
metadata: | |
name: buildah-source-pvc | |
spec: | |
accessModes: | |
- ReadWriteOnce | |
resources: | |
requests: |
This file contains hidden or 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
#!/bin/bash -xe | |
MIRROR_REG=${MIRROR_REG:-ec2-3-14-253-231.us-east-2.compute.amazonaws.com:5000} | |
REGISTRY_IMAGE=${REGISTRY_IMAGE:-registry.redhat.io/redhat/redhat-operator-index:v4.6} | |
OUTPUT_IMAGE=$MIRROR_REG/redhat/redhat-operator-index:v1 | |
echo -e $REGISTRY_IMAGE | |
echo -e $OUTPUT_IMAGE | |
if [ -z $KBUSER ]; then |
This file contains hidden or 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
#!/usr/bin/env bash | |
set -e -u -o pipefail | |
NAMESPACE=${NAMESPACE:-"pipelines-tutorial"} | |
failed=0 | |
PREVIOUS_VERSION=${PREVIOUS_VERSION:-} | |
CURRENT_VERSION=${CURRENT_VERSION:-} | |
UPGRADE_OCP_IMAGE=${UPGRADE_OCP_IMAGE:-} | |
UPGRADE_CLUSTER=${UPGRADE_CLUSTER:-false} |