forked from herocode/horus
Update .gitea/workflows/release.yml
This commit is contained in:
@@ -26,7 +26,7 @@ jobs:
|
|||||||
if ! docker image inspect "$IMAGE_NAME" >/dev/null 2>&1; then
|
if ! docker image inspect "$IMAGE_NAME" >/dev/null 2>&1; then
|
||||||
echo "ERROR: Docker image '$IMAGE_NAME' not found on runner."
|
echo "ERROR: Docker image '$IMAGE_NAME' not found on runner."
|
||||||
echo "Build it manually on the runner with:"
|
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
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -35,6 +35,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Run horus_full_install installer in container
|
- name: Run horus_full_install installer in container
|
||||||
run: |
|
run: |
|
||||||
|
set -euxo pipefail
|
||||||
|
|
||||||
docker run --rm \
|
docker run --rm \
|
||||||
-v "$PWD/hero-bin:/root/hero/bin" \
|
-v "$PWD/hero-bin:/root/hero/bin" \
|
||||||
-e HEROLIB_REF=development_nile_installers \
|
-e HEROLIB_REF=development_nile_installers \
|
||||||
@@ -42,24 +44,11 @@ jobs:
|
|||||||
bash -lc '
|
bash -lc '
|
||||||
set -euxo pipefail
|
set -euxo pipefail
|
||||||
cd /opt/herolib
|
cd /opt/herolib
|
||||||
pwd
|
|
||||||
git rev-parse --abbrev-ref HEAD || true
|
|
||||||
./examples/installers/horus/horus_full_install.vsh
|
./examples/installers/horus/horus_full_install.vsh
|
||||||
echo "===== AFTER INSTALL, ls -R /root ====="
|
|
||||||
ls -R /root || true
|
|
||||||
echo "===== AFTER INSTALL, ls -R /root/hero ====="
|
echo "===== AFTER INSTALL, ls -R /root/hero ====="
|
||||||
ls -R /root/hero || true
|
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
|
- name: List built binaries
|
||||||
run: ls -al hero-bin
|
run: ls -al hero-bin
|
||||||
|
|
||||||
@@ -81,8 +70,13 @@ jobs:
|
|||||||
- name: Generate checksums
|
- name: Generate checksums
|
||||||
run: |
|
run: |
|
||||||
cd release-artifacts
|
cd release-artifacts
|
||||||
sha256sum *.tar.gz > checksums.txt
|
if ls *.tar.gz >/dev/null 2>&1; then
|
||||||
cat checksums.txt
|
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
|
- name: Create Release
|
||||||
uses: akkuman/gitea-release-action@v1
|
uses: akkuman/gitea-release-action@v1
|
||||||
@@ -118,4 +112,4 @@ jobs:
|
|||||||
sha256sum -c checksums.txt
|
sha256sum -c checksums.txt
|
||||||
```
|
```
|
||||||
draft: false
|
draft: false
|
||||||
prerelease: false
|
prerelease: false
|
||||||
Reference in New Issue
Block a user