ops: Fix staging
Some checks failed
ci / build-and-test (pull_request) Has been cancelled
ci / docker-build (pull_request) Has been cancelled

This commit is contained in:
Brock Allen
2024-01-28 01:21:17 +00:00
parent 57cccd1cf2
commit 63a82cff81

View File

@@ -22,7 +22,7 @@ jobs:
- -
name: Restore docker image name: Restore docker image
id: cache-docker id: cache-docker
uses: https://github.com/actions/cache@v3 uses: actions/cache@v3
with: with:
path: /tmp/docker path: /tmp/docker
key: ${{ runner.os }}-docker-${{ hashFiles('builder.Dockerfile') }} key: ${{ runner.os }}-docker-${{ hashFiles('builder.Dockerfile') }}
@@ -45,7 +45,7 @@ jobs:
- -
name: Restore docker image name: Restore docker image
id: cache-docker id: cache-docker
uses: https://github.com/actions/cache@v3 uses: actions/cache@v3
with: with:
path: /tmp/docker path: /tmp/docker
key: ${{ runner.os }}-docker-${{ hashFiles('builder.Dockerfile') }} key: ${{ runner.os }}-docker-${{ hashFiles('builder.Dockerfile') }}
@@ -80,13 +80,12 @@ jobs:
mkdir -p "$staging" mkdir -p "$staging"
cp -r tests/unittest/build/artifacts/gcov "$staging" cp -r tests/unittest/build/artifacts/gcov "$staging"
tar czf "$staging.tar.gz" "$staging" tar czf "$staging.tar.gz" "$staging"
echo "ASSET=$staging.tar.gz" >> $GITEA_ENV
- -
name: Archive artifacts name: Archive artifacts
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: reports-${{gitea.run_number}} name: reports-${{gitea.run_number}}
path: ${{ env.ASSET }} path: reports-${{gitea.run_number}}.tar.gz
retention-days: 3 retention-days: 3
# TODO: delete cache on merge. # TODO: delete cache on merge.