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