previous build

This commit is contained in:
Michał Zieliński
2025-09-13 18:47:03 +02:00
parent 4923f0e3c7
commit da33ccfa49

View File

@@ -113,48 +113,4 @@ jobs:
name: webapi
path: build/webapi
if-no-files-found: error
retention-days: 7
- name: Diagnose mounts
run: |
set -e
mount | grep runner-cache || true
ls -la /runner-cache || true
echo "MARKER $(date -Iseconds)" | tee /runner-cache/__ok.txt
store-artifacts:
runs-on: ubuntu-latest
needs: [build-frontend, build-backend]
if: ${{ success() }}
steps:
- name: Download frontend artifacts
uses: https://github.com/actions/download-artifact@v3
with:
name: frontend
path: frontend
- name: Download webapi artifacts
uses: https://github.com/actions/download-artifact@v3
with:
name: webapi
path: webapi
- name: Store artifacts locally on runner
env:
BUILD_DIR: /runner-cache/builds/${{ github.run_id }}
run: |
set -euo pipefail
mkdir -p "$BUILD_DIR"
cp -r webapi "$BUILD_DIR/"
cp -r frontend "$BUILD_DIR/"
mkdir -p /runner-cache/builds
ln -sfn "$BUILD_DIR" /runner-cache/builds/latest
{
echo "BUILD_TIME=$(date -Iseconds)"
echo "COMMIT_SHA=${GITHUB_SHA}"
echo "BRANCH=${GITHUB_REF_NAME}"
echo "BUILD_ID=${GITHUB_RUN_ID}"
} > "$BUILD_DIR/build-info.txt"
echo "Build artifacts stored in: $BUILD_DIR"
ls -la "$BUILD_DIR/"
echo "Symlink 'latest' -> $(readlink -f /runner-cache/builds/latest)"
retention-days: 7