Skip to content

Commit

Permalink
Better shabang
Browse files Browse the repository at this point in the history
  • Loading branch information
zdrapela committed Dec 9, 2024
1 parent d871ec6 commit d961486
Show file tree
Hide file tree
Showing 15 changed files with 21 additions and 9 deletions.
2 changes: 2 additions & 0 deletions .ibm/pipelines/cluster/aks/az.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/bash

az_login() {
az login --service-principal -u $ARM_CLIENT_ID -p $ARM_CLIENT_SECRET --tenant $ARM_TENANT_ID
az account set --subscription $ARM_SUBSCRIPTION_ID
Expand Down
2 changes: 2 additions & 0 deletions .ibm/pipelines/cluster/aks/deployment.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/bash

initiate_aks_deployment() {
add_helm_repos
delete_namespace "${NAME_SPACE_RBAC_K8S}"
Expand Down
2 changes: 2 additions & 0 deletions .ibm/pipelines/cluster/gke/deployment.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/bash

initiate_gke_deployment() {
gcloud_ssl_cert_create $GKE_CERT_NAME $GKE_INSTANCE_DOMAIN_NAME $GOOGLE_CLOUD_PROJECT
add_helm_repos
Expand Down
2 changes: 2 additions & 0 deletions .ibm/pipelines/cluster/gke/gcloud.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/bash

gcloud_auth() {
local service_account_name=$1
local service_account_key_location=$2
Expand Down
2 changes: 2 additions & 0 deletions .ibm/pipelines/cluster/osd-gcp/create-osd.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/bash

export OC_URL=https://mirror.openshift.com/pub/openshift-v4/clients/ocp/latest/openshift-client-linux.tar.gz
export OI_URL=https://mirror.openshift.com/pub/openshift-v4/clients/ocp/latest/openshift-install-linux.tar.gz

Expand Down
2 changes: 2 additions & 0 deletions .ibm/pipelines/cluster/osd-gcp/destroy-osd.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/bash

export OC_URL=https://mirror.openshift.com/pub/openshift-v4/clients/ocp/latest/openshift-client-linux.tar.gz
export OI_URL=https://mirror.openshift.com/pub/openshift-v4/clients/ocp/latest/openshift-install-linux.tar.gz

Expand Down
2 changes: 1 addition & 1 deletion .ibm/pipelines/jobs/aks.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

handle_aks() {
echo "Starting AKS deployment"
Expand Down
2 changes: 1 addition & 1 deletion .ibm/pipelines/jobs/gke.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

handle_gke() {
echo "Starting GKE deployment"
Expand Down
2 changes: 1 addition & 1 deletion .ibm/pipelines/jobs/main.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

set -x

Expand Down
2 changes: 1 addition & 1 deletion .ibm/pipelines/jobs/ocp-v4-15.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

handle_ocp_4_15() {
K8S_CLUSTER_URL=$(cat /tmp/secrets/RHDH_OS_2_CLUSTER_URL)
Expand Down
2 changes: 1 addition & 1 deletion .ibm/pipelines/jobs/ocp-v4-16.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

handle_ocp_4_16() {
K8S_CLUSTER_URL=$(cat /tmp/secrets/RHDH_OS_1_CLUSTER_URL)
Expand Down
2 changes: 1 addition & 1 deletion .ibm/pipelines/jobs/operator.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

handle_operator() {
oc_login
Expand Down
2 changes: 1 addition & 1 deletion .ibm/pipelines/jobs/periodic.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

handle_nightly() {
export NAME_SPACE="showcase-ci-nightly"
Expand Down
2 changes: 1 addition & 1 deletion .ibm/pipelines/openshift-ci-tests.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

set -xe
export PS4='[$(date "+%Y-%m-%d %H:%M:%S")] ' # logs timestamp for every cmd.
Expand Down
2 changes: 1 addition & 1 deletion .ibm/pipelines/utils.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

set -x

Expand Down

0 comments on commit d961486

Please sign in to comment.