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

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

View File

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