diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 8bf99f6..07ce7f3 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -26,7 +26,7 @@ jobs: if ! docker image inspect "$IMAGE_NAME" >/dev/null 2>&1; then echo "ERROR: Docker image '$IMAGE_NAME' not found on runner." echo "Build it manually on the runner with:" - echo " docker build -t hero-git:latest -f Dockerfile ." + echo " docker build -t $IMAGE_NAME -f Dockerfile ." exit 1 fi @@ -35,6 +35,8 @@ jobs: - name: Run horus_full_install installer in container run: | + set -euxo pipefail + docker run --rm \ -v "$PWD/hero-bin:/root/hero/bin" \ -e HEROLIB_REF=development_nile_installers \ @@ -42,24 +44,11 @@ jobs: bash -lc ' set -euxo pipefail cd /opt/herolib - pwd - git rev-parse --abbrev-ref HEAD || true ./examples/installers/horus/horus_full_install.vsh - echo "===== AFTER INSTALL, ls -R /root =====" - ls -R /root || true echo "===== AFTER INSTALL, ls -R /root/hero =====" ls -R /root/hero || true ' - - - name: Run horus_full_install installer in container - run: | - docker run --rm \ - -v "$PWD/hero-bin:/root/hero/bin" \ - -e HEROLIB_REF=development_nile_installers \ - "$IMAGE_NAME" \ - bash -lc "cd /opt/herolib && ./examples/installers/horus/horus_full_install.vsh" - - name: List built binaries run: ls -al hero-bin @@ -81,8 +70,13 @@ jobs: - name: Generate checksums run: | cd release-artifacts - sha256sum *.tar.gz > checksums.txt - cat checksums.txt + if ls *.tar.gz >/dev/null 2>&1; then + sha256sum *.tar.gz > checksums.txt + cat checksums.txt + else + echo "ERROR: no .tar.gz artifacts were produced; check previous steps (likely the installer didn’t build any binaries)." + exit 1 + fi - name: Create Release uses: akkuman/gitea-release-action@v1 @@ -118,4 +112,4 @@ jobs: sha256sum -c checksums.txt ``` draft: false - prerelease: false + prerelease: false \ No newline at end of file