ci: use caching to speed up congtainer builds
ci/woodpecker/push/build-package Pipeline was successful Details
ci/woodpecker/push/build-container Pipeline failed Details
ci/woodpecker/push/docs unknown status Details
ci/woodpecker/push/notify Pipeline was successful Details

This commit is contained in:
Robert Kaussow 2023-11-26 13:23:51 +01:00
parent 5738015f1b
commit 8e85a944ae
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
1 changed files with 6 additions and 0 deletions

View File

@ -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]