previous build
This commit is contained in:
@@ -113,48 +113,4 @@ jobs:
|
|||||||
name: webapi
|
name: webapi
|
||||||
path: build/webapi
|
path: build/webapi
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
retention-days: 7
|
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)"
|
|
||||||
Reference in New Issue
Block a user