mirror of
https://github.com/mulgadc/spinifex.git
synced 2026-10-15 17:11:30 +00:00
fix: locate release assets by filename instead of hardcoded path
This commit is contained in:
@@ -98,12 +98,25 @@ jobs:
|
||||
./scrub-env.sh env3 >> "$TOFU_LOG" 2>&1 || true
|
||||
tofu apply -var-file=envs/env3.tfvars -auto-approve -input=false >> "$TOFU_LOG" 2>&1
|
||||
|
||||
- name: Locate release assets
|
||||
id: assets
|
||||
run: |
|
||||
SETUP_SH=$(find "${GITHUB_WORKSPACE}/release-assets" -name "setup.sh" -type f | head -1)
|
||||
TARBALL=$(find "${GITHUB_WORKSPACE}/release-assets" -name "spinifex-${TAG}-linux-amd64.tar.gz" -type f | head -1)
|
||||
if [ -z "$SETUP_SH" ] || [ -z "$TARBALL" ]; then
|
||||
echo "Could not find release assets:"
|
||||
find "${GITHUB_WORKSPACE}/release-assets" -type f
|
||||
exit 1
|
||||
fi
|
||||
echo "setup_sh=${SETUP_SH}" >> "$GITHUB_OUTPUT"
|
||||
echo "tarball=${TARBALL}" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Bootstrap via binary install
|
||||
working-directory: mulga/scripts/tofu-cluster
|
||||
run: |
|
||||
SETUP_SH="${GITHUB_WORKSPACE}/release-assets/spinifex/scripts/setup.sh"
|
||||
TARBALL="${GITHUB_WORKSPACE}/release-assets/spinifex/dist/spinifex-${TAG}-linux-amd64.tar.gz"
|
||||
./bootstrap-install.sh env3 "$SETUP_SH" "$TARBALL"
|
||||
env:
|
||||
SETUP_SH: ${{ steps.assets.outputs.setup_sh }}
|
||||
TARBALL: ${{ steps.assets.outputs.tarball }}
|
||||
run: ./bootstrap-install.sh env3 "$SETUP_SH" "$TARBALL"
|
||||
|
||||
- name: Run smoke test
|
||||
working-directory: mulga/scripts/tofu-cluster
|
||||
|
||||
Reference in New Issue
Block a user