forked from AztecProtocol/aztec-packages
-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (35 loc) · 1.02 KB
/
earthly-prune.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# prune earthly runners to workaround a sticky issue with 'graph edge'
# by default prunes cache from last 8 hours, see 'earthly prune --help' for other options
name: Earthly Prune
on:
workflow_dispatch:
inputs:
username:
required: false
type: string
prune_flags:
default: "--reset"
type: string
concurrency:
# force parallelism in master
group: prune-${{ inputs.username || github.actor }}
cancel-in-progress: true
jobs:
setup:
uses: ./.github/workflows/setup-runner.yml
with:
username: ${{ inputs.username || github.actor }}
runner_type: builder-x86
secrets: inherit
publish:
needs: setup
runs-on: ${{ inputs.username || github.actor }}-x86
steps:
- uses: actions/checkout@v4
with:
ref: ${{ inputs.tag || github.ref }}
- uses: ./.github/ci-setup-action
env:
DOCKERHUB_PASSWORD: "${{ secrets.DOCKERHUB_PASSWORD }}"
- timeout-minutes: 25
run: earthly-ci prune ${{ inputs.prune_flags }}