Skip to content

Commit

Permalink
Expirement nobuild procedure WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Jan 24, 2024
1 parent fa84b59 commit 369cb08
Showing 1 changed file with 28 additions and 10 deletions.
38 changes: 28 additions & 10 deletions .github/workflows/itest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ on:
required: true
env:
CIUXCONFIG: /tmp/ciux.sh
CIUX_VERSION: v0.0.1-rc12
CIUX_VERSION: dev
GHA_BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
MINIMAL: ${{ inputs.minimal }}
NOSCIENCE: ${{ inputs.noscience }}
Expand All @@ -40,19 +40,37 @@ jobs:
go-version: '1.21.4'
- name: Install ciux
run: go install github.com/k8s-school/ciux@"${{ env.CIUX_VERSION }}"
- name: Ciux project ignition
run: ciux ignite --selector build $PWD
- name: Build fink-broker image for k8s
- name: Build image if not present in registry
run: |
./build.sh
SUFFIX_OPT=""
if [ NOSCIENCE = true ]; then
SUFFIX_OPT="--suffix noscience"
fi
if $IMAGE=$(ciux get image --check $PWD $SUFFIX_OPT)
then
echo "::notice Image already exists"
exit 0
else
echo "::notice Image does not exist"
ciux ignite --selector build $PWD
./build.sh
fi
- name: Push image to local registry
id: push
run: |
. "$CIUXCONFIG"
. ./conf.sh
docker push $IMAGE
echo "IMAGE=$IMAGE" >> "$GITHUB_OUTPUT"
echo "PROMOTED_IMAGE=$PROMOTED_IMAGE" >> "$GITHUB_OUTPUT"
# FIXME make it simpler
if $IMAGE=$(ciux get image --check $PWD $SUFFIX_OPT)
then
echo "IMAGE=$IMAGE" >> "$GITHUB_OUTPUT"
. ./conf.sh
echo "PROMOTED_IMAGE=$PROMOTED_IMAGE" >> "$GITHUB_OUTPUT"
else
. "$CIUXCONFIG"
. ./conf.sh
docker push $IMAGE
echo "IMAGE=$IMAGE" >> "$GITHUB_OUTPUT"
fi
integration-tests:
name: Run integration tests
runs-on: [self-hosted, v3]
Expand Down

0 comments on commit 369cb08

Please sign in to comment.