mirror of
https://github.com/anchore/syft.git
synced 2025-11-17 16:33:21 +01:00
* slim down docker cache size Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * remove old centos images Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * troubleshoot test failure Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * fix wget version ref Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * refactor caching mechanisms Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * add cache cleanup steps Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * simplify deleting cache Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * fix first clone issue Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * add tool dep Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> --------- Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
40 lines
1.1 KiB
YAML
40 lines
1.1 KiB
YAML
name: "Test fixture cache: publish"
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
# run nightly at 4AM UTC
|
|
- cron: "0 4 * * *"
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
|
|
Publish:
|
|
name: "Publish test fixture image cache"
|
|
# we use this runner to get enough storage space for docker images and fixture cache
|
|
runs-on: ubuntu-22.04-4core-16gb
|
|
permissions:
|
|
packages: write
|
|
steps:
|
|
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #v4.1.7
|
|
|
|
- name: Bootstrap environment
|
|
uses: ./.github/actions/bootstrap
|
|
with:
|
|
# we want to rebuild the cache with no previous state
|
|
download-test-fixture-cache: false
|
|
|
|
- name: Run all tests
|
|
run: make test
|
|
env:
|
|
# we want to rebuild the cache with no previous state
|
|
DOWNLOAD_TEST_FIXTURE_CACHE: "false"
|
|
|
|
- name: Login to GitHub Container Registry (ORAS)
|
|
run: echo "${{ secrets.GITHUB_TOKEN }}" | .tool/oras login ghcr.io -u ${{ github.actor }} --password-stdin
|
|
|
|
- name: Publish test fixture cache
|
|
run: make upload-test-fixture-cache
|