Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .scripts/actions/install_boil.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

set -euo pipefail
[ -n "$GITHUB_DEBUG" ] && set -x
[ -n "${RUNNER_DEBUG+set}" ] && set -x

ARCH=$(uname -m)

Expand Down
2 changes: 1 addition & 1 deletion .scripts/actions/install_helm.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

set -euo pipefail
[ -n "$GITHUB_DEBUG" ] && set -x
[ -n "${RUNNER_DEBUG+set}" ] && set -x

PLATFORM=$("$GITHUB_ACTION_PATH/../.scripts/actions/get_platform.sh")
ARCH=$("$GITHUB_ACTION_PATH/../.scripts/actions/get_architecture.sh")
Expand Down
2 changes: 1 addition & 1 deletion .scripts/actions/install_interu.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

set -euo pipefail
[ -n "$GITHUB_DEBUG" ] && set -x
[ -n "${RUNNER_DEBUG+set}" ] && set -x

ARCH=$(uname -m)

Expand Down
2 changes: 1 addition & 1 deletion .scripts/actions/install_kubectl.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

set -euo pipefail
[ -n "$GITHUB_DEBUG" ] && set -x
[ -n "${RUNNER_DEBUG+set}" ] && set -x

ARCH=$("$GITHUB_ACTION_PATH/../.scripts/actions/get_architecture.sh")

Expand Down
2 changes: 1 addition & 1 deletion .scripts/actions/install_kubectl_kuttl.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

set -euo pipefail
[ -n "$GITHUB_DEBUG" ] && set -x
[ -n "${RUNNER_DEBUG+set}" ] && set -x

ARCH=$(uname -m)

Expand Down
2 changes: 1 addition & 1 deletion .scripts/actions/install_prek.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

set -euo pipefail
[ -n "$GITHUB_DEBUG" ] && set -x
[ -n "${RUNNER_DEBUG+set}" ] && set -x

ARCH=$(uname -m)

Expand Down
2 changes: 1 addition & 1 deletion .scripts/actions/install_stackablectl.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

set -euo pipefail
[ -n "$GITHUB_DEBUG" ] && set -x
[ -n "${RUNNER_DEBUG+set}" ] && set -x

ARCH=$(uname -m)

Expand Down
2 changes: 1 addition & 1 deletion build-product-image/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ runs:
- name: Setup boil (${{ inputs.boil-version }})
env:
BOIL_VERSION: ${{ inputs.boil-version }}
GITHUB_DEBUG: ${{ runner.debug }}
shell: bash
run: "$GITHUB_ACTION_PATH/../.scripts/actions/install_boil.sh"

Expand All @@ -60,6 +59,7 @@ runs:
shell: bash
run: |
set -euo pipefail
[ -n "${RUNNER_DEBUG+set}" ] && set -x

IMAGE_ARCH=$("$GITHUB_ACTION_PATH/../.scripts/actions/get_architecture.sh")

Expand Down
16 changes: 5 additions & 11 deletions publish-helm-chart/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ runs:
- name: Set up Helm
env:
HELM_VERSION: ${{ inputs.helm-version }}
GITHUB_DEBUG: ${{ runner.debug }}
VERIFY_SIGNATURE: "false"
shell: bash
run: "$GITHUB_ACTION_PATH/../.scripts/actions/install_helm.sh"
Expand All @@ -65,11 +64,10 @@ runs:
CHART_REGISTRY_USERNAME: ${{ inputs.chart-registry-username }}
CHART_REGISTRY_PASSWORD: ${{ inputs.chart-registry-password }}
CHART_REGISTRY_URI: ${{ inputs.chart-registry-uri }}
GITHUB_DEBUG: ${{ runner.debug }}
shell: bash
run: |
set -euo pipefail
[ -n "$GITHUB_DEBUG" ] && set -x
[ -n "${RUNNER_DEBUG+set}" ] && set -x

helm registry login --username "$CHART_REGISTRY_USERNAME" --password "$CHART_REGISTRY_PASSWORD" "$CHART_REGISTRY_URI"

Expand All @@ -86,11 +84,10 @@ runs:
env:
CHART_REGISTRY_URI: ${{ inputs.chart-registry-uri }}
CHART_DIRECTORY: ${{ inputs.chart-directory }}
GITHUB_DEBUG: ${{ runner.debug }}
shell: bash
run: |
set -euo pipefail
[ -n "$GITHUB_DEBUG" ] && set -x
[ -n "${RUNNER_DEBUG+set}" ] && set -x

# This is directly taken from the official yq examples and merges all
# listed files. ORDER MATTERS. Later files are merged into earlier files.
Expand All @@ -107,11 +104,10 @@ runs:
CHART_DIRECTORY: ${{ inputs.chart-directory }}
CHART_VERSION: ${{ inputs.chart-version }}
APP_VERSION: ${{ inputs.app-version }}
GITHUB_DEBUG: ${{ runner.debug }}
shell: bash
run: |
set -euo pipefail
[ -n "$GITHUB_DEBUG" ] && set -x
[ -n "${RUNNER_DEBUG+set}" ] && set -x

# Create temporary directory to store the Helm Chart
TEMP_CHART_DIR=$(mktemp -d)
Expand All @@ -133,11 +129,10 @@ runs:
CHART_REPOSITORY: ${{ inputs.chart-repository }}
CHART_DIRECTORY: ${{ inputs.chart-directory }}
CHART_VERSION: ${{ inputs.chart-version }}
GITHUB_DEBUG: ${{ runner.debug }}
shell: bash
run: |
set -euo pipefail
[ -n "$GITHUB_DEBUG" ] && set -x
[ -n "${RUNNER_DEBUG+set}" ] && set -x

CHART_NAME=$(echo "$CHART_DIRECTORY" | awk -F/ '{print $NF}')
CHART_ARTIFACT="${TEMP_CHART_DIR}/${CHART_NAME}-${CHART_VERSION}.tgz"
Expand Down Expand Up @@ -168,11 +163,10 @@ runs:
CHART_REGISTRY_URI: ${{ inputs.chart-registry-uri }}
CHART_NAME: ${{ steps.publish.outputs.CHART_NAME }}
CHART_REPOSITORY: ${{ inputs.chart-repository }}
GITHUB_DEBUG: ${{ runner.debug }}
shell: bash
run: |
set -euo pipefail
[ -n "$GITHUB_DEBUG" ] && set -x
[ -n "${RUNNER_DEBUG+set}" ] && set -x

# This generates a signature and publishes it to the registry, next to the chart artifact
# Uses the keyless signing flow with Github Actions as identity provider
Expand Down
13 changes: 6 additions & 7 deletions run-integration-test/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ runs:
- name: Install interu
env:
INTERU_VERSION: ${{ inputs.interu-version }}
GITHUB_DEBUG: ${{ runner.debug }}
RUNNER_DEBUG: ${{ runner.debug }}
shell: bash
run: "$GITHUB_ACTION_PATH/../.scripts/actions/install_interu.sh"

Expand All @@ -72,13 +72,13 @@ runs:
TEST_SUITE: ${{ inputs.test-suite }}
TEST_MODE: ${{ inputs.test-mode }}
TEST: ${{ inputs.test }}
GITHUB_DEBUG: ${{ runner.debug }}
RUNNER_DEBUG: ${{ runner.debug }}
GITHUB_REPOSITORY: ${{ github.repository }}
GITHUB_RUN_ID: ${{ github.run_id }}"
shell: bash
run: |
set -euo pipefail
[ -n "$GITHUB_DEBUG" ] && set -x
[ -n "${RUNNER_DEBUG+set}" ] && set -x

# Generate the cluster name
echo "KUBERNETES_CLUSTER_NAME=integration-test-${GITHUB_REPOSITORY}-${GITHUB_RUN_ID}" | tee -a "$GITHUB_ENV"
Expand All @@ -104,7 +104,7 @@ runs:
KUBECTL_VERSION: ${{ inputs.kubectl-version }}
KUTTL_VERSION: ${{ inputs.kuttl-version }}
HELM_VERSION: ${{ inputs.helm-version }}
GITHUB_DEBUG: ${{ runner.debug }}
RUNNER_DEBUG: ${{ runner.debug }}
shell: bash
run: |
"$GITHUB_ACTION_PATH/../.scripts/actions/install_kubectl.sh"
Expand All @@ -120,18 +120,16 @@ runs:
- name: Install stackablectl
env:
STACKABLECTL_VERSION: ${{ inputs.stackablectl-version }}
GITHUB_DEBUG: ${{ runner.debug }}
shell: bash
run: "$GITHUB_ACTION_PATH/../.scripts/actions/install_stackablectl.sh"

- name: Install beku
env:
BEKU_VERSION: ${{ inputs.beku-version }}
GITHUB_DEBUG: ${{ runner.debug }}
shell: bash
run: |
set -euo pipefail
[ -n "$GITHUB_DEBUG" ] && set -x
[ -n "${RUNNER_DEBUG+set}" ] && set -x

pip install "beku-stackabletech==$BEKU_VERSION"

Expand Down Expand Up @@ -170,6 +168,7 @@ runs:
shell: bash
run: |
set -euo pipefail

mkdir ~/.kube
echo "$KUBECONFIG" > ~/.kube/config

Expand Down
10 changes: 3 additions & 7 deletions run-openshift-preflight/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,10 @@ runs:
- name: Download the OpenShift preflight tool
env:
PREFLIGHT_VERSION: ${{ inputs.preflight-version }}
GITHUB_DEBUG: ${{ runner.debug }}
shell: bash
run: |
set -euo pipefail
[ -n "$GITHUB_DEBUG" ] && set -x
[ -n "${RUNNER_DEBUG+set}" ] && set -x

ARCH=$("$GITHUB_ACTION_PATH/../.scripts/actions/get_architecture.sh")
SYSTEM=$("$GITHUB_ACTION_PATH/../.scripts/actions/get_platform.sh")
Expand All @@ -40,21 +39,18 @@ runs:
env:
IMAGE_ARCHITECTURE: ${{ inputs.image-architecture }}
IMAGE_INDEX_URI: ${{ inputs.image-index-uri }}
GITHUB_DEBUG: ${{ runner.debug }}
shell: bash
run: |
set -euo pipefail
[ -n "$GITHUB_DEBUG" ] && set -x
[ -n "${RUNNER_DEBUG+set}" ] && set -x

openshift-preflight check container "$IMAGE_INDEX_URI" --platform "$IMAGE_ARCHITECTURE" > preflight.out

- name: Report Result
env:
GITHUB_DEBUG: ${{ runner.debug }}
shell: bash
run: |
set -euo pipefail
[ -n "$GITHUB_DEBUG" ] && set -x
[ -n "${RUNNER_DEBUG+set}" ] && set -x

if [ "$(jq -r .passed < preflight.out)" == true ]; then
echo "Checks Passed"
Expand Down
1 change: 0 additions & 1 deletion run-prek/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ runs:
shell: bash
env:
PREK_VERSION: ${{ inputs.prek-version }}
GITHUB_DEBUG: ${{ runner.debug }}
run: "$GITHUB_ACTION_PATH/../.scripts/actions/install_prek.sh"

# This caches downloaded prek hook artifacts and results in faster
Expand Down
3 changes: 0 additions & 3 deletions setup-k8s-tools/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,20 @@ runs:
if: inputs.kubectl-version
env:
KUBECTL_VERSION: ${{ inputs.kubectl-version }}
GITHUB_DEBUG: ${{ runner.debug }}
shell: bash
run: "$GITHUB_ACTION_PATH/../.scripts/actions/install_kubectl.sh"

- name: Install kubectl-kuttl
if: inputs.kuttl-version
env:
KUTTL_VERSION: ${{ inputs.kuttl-version }}
GITHUB_DEBUG: ${{ runner.debug }}
shell: bash
run: "$GITHUB_ACTION_PATH/../.scripts/actions/install_kubectl_kuttl.sh"

- name: Install Helm
if: inputs.helm-version
env:
HELM_VERSION: ${{ inputs.helm-version }}
GITHUB_DEBUG: ${{ runner.debug }}
# The signature is expired since a couple of years...
VERIFY_SIGNATURE: "false"
shell: bash
Expand Down
6 changes: 1 addition & 5 deletions setup-tools/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,34 +17,30 @@ runs:
if: inputs.boil-version
env:
BOIL_VERSION: ${{ inputs.boil-version }}
GITHUB_DEBUG: ${{ runner.debug }}
shell: bash
run: "$GITHUB_ACTION_PATH/../.scripts/actions/install_boil.sh"

- name: Install stackablectl
if: inputs.stackablectl-version
env:
STACKABLECTL_VERSION: ${{ inputs.stackablectl-version }}
GITHUB_DEBUG: ${{ runner.debug }}
shell: bash
run: "$GITHUB_ACTION_PATH/../.scripts/actions/install_stackablectl.sh"

- name: Install interu
if: inputs.interu-version
env:
INTERU_VERSION: ${{ inputs.interu-version }}
GITHUB_DEBUG: ${{ runner.debug }}
shell: bash
run: "$GITHUB_ACTION_PATH/../.scripts/actions/install_interu.sh"

- name: Install beku
if: inputs.beku-version
env:
BEKU_VERSION: ${{ inputs.beku-version }}
GITHUB_DEBUG: ${{ runner.debug }}
shell: bash
run: |
set -euo pipefail
[ -n "$GITHUB_DEBUG" ] && set -x
[ -n "${RUNNER_DEBUG+set}" ] && set -x

pip install "beku-stackabletech==$BEKU_VERSION"
7 changes: 2 additions & 5 deletions shard/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,30 +19,27 @@ runs:
- name: Setup boil (${{ inputs.boil-version }})
env:
BOIL_VERSION: ${{ inputs.boil-version }}
GITHUB_DEBUG: ${{ runner.debug }}
shell: bash
run: "$GITHUB_ACTION_PATH/../.scripts/actions/install_boil.sh"

- name: Generate Shards
id: generate_shards
env:
PRODUCT_NAME: ${{ inputs.product-name }}
GITHUB_DEBUG: ${{ runner.debug }}
shell: bash
run: |
set -euo pipefail
[ -n "$GITHUB_DEBUG" ] && set -x
[ -n "${RUNNER_DEBUG+set}" ] && set -x

VERSIONS=$(boil image list "$PRODUCT_NAME" | jq --compact-output --arg product_name "$PRODUCT_NAME" '.[$product_name]')
echo "VERSIONS=$VERSIONS" | tee -a "$GITHUB_OUTPUT"

- name: Print Shards
env:
GITHUB_DEBUG: ${{ runner.debug }}
VERSIONS: ${{ steps.generate_shards.outputs.VERSIONS }}
shell: bash
run: |
set -euo pipefail
[ -n "$GITHUB_DEBUG" ] && set -x
[ -n "${RUNNER_DEBUG+set}" ] && set -x

echo "versions=$VERSIONS"