Skip to content

Commit

Permalink
Fix ciux init in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
fjammes committed Jul 19, 2024
1 parent e0defec commit ea614df
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/e2e-common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ on:
private_registry_token:
required: true
env:
CIUXCONFIG: /tmp/ciux.sh
CIUX_VERSION: v0.0.4-rc2
GHA_BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
SUFFIX: ${{ inputs.suffix }}
Expand All @@ -49,6 +48,7 @@ jobs:
run: go install github.com/k8s-school/ciux@"${{ env.CIUX_VERSION }}"
- name: Build fink-broker image for k8s
run: |
mkdir -p $HOME/.ciux
./build.sh -s "${{ env.SUFFIX }}" -r "${{ env.CI_REPO }}"
- name: Export fink-broker image
id: export
Expand Down Expand Up @@ -89,10 +89,10 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
with:
detached: true
# - name: Setup tmate session
# uses: mxschmitt/action-tmate@v3
# with:
# detached: true
- name: Maximize build space
run: |
echo "Removing unwanted software... "
Expand All @@ -114,6 +114,7 @@ jobs:
run: go install github.com/k8s-school/ciux@"${{ env.CIUX_VERSION }}"
- name: Ciux project ignition
run: |
mkdir -p $HOME/.ciux
ciux ignite --selector ci --branch="$GHA_BRANCH_NAME" $PWD --suffix "${{ env.SUFFIX }}" --tmp-registry "${{ env.CI_REPO }}"
- name: Create k8s (kind) cluster
run: |
Expand Down Expand Up @@ -141,7 +142,7 @@ jobs:
path: artifacts
- name: Load container image inside kind
run: |
. "$CIUXCONFIG"
. "$HOME/.ciux/ciux.sh"
if [ -f artifacts/image.tar ]; then
echo "Loading image from archive"
kind load image-archive artifacts/image.tar
Expand All @@ -151,7 +152,7 @@ jobs:
fi
- name: Run fink-alert-simulator
run: |
. "$CIUXCONFIG"
export CIUXCONFIG="$HOME/.ciux/ciux.sh"
kubectl config set-context --current --namespace=argo
"$FINK_ALERT_SIMULATOR_DIR"/argo-submit.sh
argo watch @latest
Expand All @@ -166,7 +167,7 @@ jobs:
- name: Promote fink-broker image
id: promote
run: |
. "$CIUXCONFIG"
. "$HOME/.ciux/ciux.sh"
echo "PROMOTED_IMAGE=$CIUX_IMAGE_REGISTRY/$CIUX_IMAGE_NAME:$CIUX_IMAGE_TAG" >> "$GITHUB_OUTPUT"
echo "NEW_IMAGE=$CIUX_BUILD" >> "$GITHUB_OUTPUT"
image-analysis:
Expand Down

0 comments on commit ea614df

Please sign in to comment.