Skip to content
Merged
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
5 changes: 5 additions & 0 deletions .changeset/strange-birds-trade.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"setup-crib-environment": minor
---

Expose devspace-namespace var in action outputs
8 changes: 5 additions & 3 deletions actions/setup-crib-environment/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ inputs:
default: core
description: Product name
required: false
outputs:
Comment thread
njegosrailic marked this conversation as resolved.
Outdated
devspace-namespace: ${{ steps.generate-ns-name.outputs.devspace-namespace }}

runs:
using: "composite"
Expand Down Expand Up @@ -111,7 +113,7 @@ runs:
id: generate-ns-name
shell: bash
run: |
echo "DEVSPACE-NAMESPACE=crib-ci-$(uuidgen | cut -c1-5)" >> $GITHUB_OUTPUT
echo "devspace-namespace=crib-ci-$(uuidgen | cut -c1-5)" >> $GITHUB_OUTPUT

- name: Deploy to CRIB ephemeral environment
working-directory: ${{ inputs.product }}
Expand All @@ -132,7 +134,7 @@ runs:
SETUP_EKS_CONFIG: false
run: |
# Get the namespace name from GitHub Actions output
NAMESPACE="${{ steps.generate-ns-name.outputs.DEVSPACE-NAMESPACE }}"
NAMESPACE="${{ steps.generate-ns-name.outputs.devspace-namespace }}"
echo "Using $NAMESPACE Kubernetes namespace"
kubectl create ns "$NAMESPACE"

Expand All @@ -155,7 +157,7 @@ runs:
KUBECACHEDIR: /dev/null
run: |
# Get the namespace name from GitHub Actions output
NAMESPACE="${{ steps.generate-ns-name.outputs.DEVSPACE-NAMESPACE }}"
NAMESPACE="${{ steps.generate-ns-name.outputs.devspace-namespace }}"

# Check if the namespace exists
if kubectl get ns "$NAMESPACE" > /dev/null 2>&1; then
Expand Down