forked from envoyproxy/envoy
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (38 loc) · 1.06 KB
/
_cache_docker.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
40
41
42
43
name: Cache prime (docker)
permissions:
contents: read
on:
workflow_call:
inputs:
image_tag:
type: string
required: true
image_repo:
type: string
required: true
image_sha:
type: string
required: true
concurrency:
group: cache_docker-${{ inputs.image_tag }}
cancel-in-progress: false
## Docker cache
#
# This workflow will only prime the cache, and should be done separately first, prior
# to any jobs that require it.
#
# For a job that does, you can restore with something like:
#
# steps:
# - uses: envoyproxy/toolshed/gh-actions/docker/cache/[email protected]
# with:
# key: "${{ needs.env.outputs.build_image_ubuntu }}"
#
jobs:
docker:
runs-on: ubuntu-22.04
steps:
- uses: envoyproxy/toolshed/gh-actions/docker/cache/[email protected]
name: Prime Docker cache (${{ inputs.image_repo }}:${{ inputs.image_tag }}@sha256:${{ inputs.image_sha }})
with:
image_tag: "${{ inputs.image_repo }}:${{ inputs.image_tag }}@sha256:${{ inputs.image_sha }}"