ci: use caching to speed up congtainer builds
This commit is contained in:
parent
5738015f1b
commit
8e85a944ae
@ -11,6 +11,8 @@ steps:
|
||||
settings:
|
||||
containerfile: Containerfile
|
||||
output: type=oci,dest=oci/${CI_REPO_NAME},tar=false
|
||||
cache_to:
|
||||
- 'type=local\\,dest=oci/${CI_REPO_NAME}'
|
||||
repo: thegeeklab/${CI_REPO_NAME}
|
||||
|
||||
security-scan:
|
||||
@ -38,6 +40,8 @@ steps:
|
||||
repo: thegeeklab/${CI_REPO_NAME}
|
||||
username:
|
||||
from_secret: docker_username
|
||||
cache_from:
|
||||
- 'type=local\\,dest=oci/${CI_REPO_NAME}'
|
||||
when:
|
||||
- event: [tag]
|
||||
- event: [push, manual]
|
||||
@ -57,6 +61,8 @@ steps:
|
||||
repo: quay.io/thegeeklab/${CI_REPO_NAME}
|
||||
username:
|
||||
from_secret: quay_username
|
||||
cache_from:
|
||||
- 'type=local\\,dest=oci/${CI_REPO_NAME}'
|
||||
when:
|
||||
- event: [tag]
|
||||
- event: [push, manual]
|
||||
|
Loading…
Reference in New Issue
Block a user