mirror of
https://github.com/zokradonh/kopano-docker
synced 2025-06-09 17:06:31 +00:00
Custom caching
This commit is contained in:
parent
97af45b0cc
commit
6a2eb203b6
1
.github/actions/build-component/action.yml
vendored
1
.github/actions/build-component/action.yml
vendored
@ -36,7 +36,6 @@ runs:
|
|||||||
# - VCS-REF
|
# - VCS-REF
|
||||||
# - service version (may be given to Dockerfile)
|
# - service version (may be given to Dockerfile)
|
||||||
context: ${{ inputs.component }}
|
context: ${{ inputs.component }}
|
||||||
cache-from: type=local,src=/tmp/.kopano-repo-helper-cache
|
|
||||||
build-args: |
|
build-args: |
|
||||||
ADDITIONAL_KOPANO_PACKAGES=
|
ADDITIONAL_KOPANO_PACKAGES=
|
||||||
ADDITIONAL_KOPANO_WEBAPP_PLUGINS=
|
ADDITIONAL_KOPANO_WEBAPP_PLUGINS=
|
||||||
|
25
.github/workflows/ci.yml
vendored
25
.github/workflows/ci.yml
vendored
@ -50,7 +50,7 @@ jobs:
|
|||||||
# restore-keys: |
|
# restore-keys: |
|
||||||
# ${{ runner.os }}-buildx-
|
# ${{ runner.os }}-buildx-
|
||||||
- name: Extract Version information
|
- name: Extract Version information
|
||||||
id: kopano_versions
|
id: kopano-versions
|
||||||
run: |
|
run: |
|
||||||
./gh_output_dockertags.sh core
|
./gh_output_dockertags.sh core
|
||||||
./gh_output_dockertags.sh webapp
|
./gh_output_dockertags.sh webapp
|
||||||
@ -59,23 +59,24 @@ jobs:
|
|||||||
./gh_output_dockertags.sh meet
|
./gh_output_dockertags.sh meet
|
||||||
./gh_output_dockertags.sh zpush
|
./gh_output_dockertags.sh zpush
|
||||||
- name: Prepare Kopano APT Packages Cache
|
- name: Prepare Kopano APT Packages Cache
|
||||||
|
id: apt-cache
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: /tmp/.kopano-repo-helper-cache
|
path: /tmp/.kopano-repo-helper-cache
|
||||||
key: ${{ runner.os }}-kopano-${{ steps.kopano_versions.outputs.core_version }}-${{ steps.kopano_versions.outputs.webapp_version }}-${{ steps.kopano_versions.outputs.zpush_version }}-${{ steps.kopano_versions.outputs.meet_version }}-${{ steps.kopano_versions.outputs.kapps_version }}-${{ steps.kopano_versions.outputs.kdav_version }}
|
key: ${{ runner.os }}-kopano-${{ steps.kopano-versions.outputs.core_version }}-${{ steps.kopano-versions.outputs.webapp_version }}-${{ steps.kopano-versions.outputs.zpush_version }}-${{ steps.kopano-versions.outputs.meet_version }}-${{ steps.kopano-versions.outputs.kapps_version }}-${{ steps.kopano-versions.outputs.kdav_version }}
|
||||||
- name: Download Kopano APT Packages
|
- name: Download Kopano APT Packages
|
||||||
|
if: steps.apt-cache.outputs.cache-hit != 'true'
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
load: true
|
|
||||||
push: false
|
push: false
|
||||||
tags: zokradonh/kopano_repo_helper
|
tags: zokradonh/kopano_repo_helper
|
||||||
context: repo
|
context: repo
|
||||||
cache-from: type=local,src=/tmp/.kopano-repo-helper-cache
|
- name: Cache Kopano APT Packages
|
||||||
cache-to: type=local,dest=/tmp/.kopano-repo-helper-cache-new,mode=max
|
if: steps.apt-cache.outputs.cache-hit != 'true'
|
||||||
- name: Cleanup Kopano APT Packages Cache (Workaround)
|
run: docker save -o /tmp/.kopano-repo-helper-cache/kopano_repo_helper.tar zokradonh/kopano_repo_helper
|
||||||
run: |
|
- name: Use Kopano APT Packages from cache
|
||||||
rm -rf /tmp/.kopano-repo-helper-cache
|
if: steps.apt-cache.outputs.cache-hit == 'true'
|
||||||
mv /tmp/.kopano-repo-helper-cache-new /tmp/.kopano-repo-helper-cache
|
run: docker load /tmp/.kopano-repo-helper-cache/kopano_repo_helper.tar
|
||||||
- uses: ./.github/actions/build-component
|
- uses: ./.github/actions/build-component
|
||||||
with:
|
with:
|
||||||
push: false
|
push: false
|
||||||
@ -84,17 +85,17 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
push: false
|
push: false
|
||||||
component: core
|
component: core
|
||||||
tags: ${{ steps.kopano_versions.outputs.core_version_tags }}
|
tags: ${{ steps.kopano-versions.outputs.core_version_tags }}
|
||||||
- uses: ./.github/actions/build-component
|
- uses: ./.github/actions/build-component
|
||||||
with:
|
with:
|
||||||
push: false
|
push: false
|
||||||
component: webapp
|
component: webapp
|
||||||
tags: ${{ steps.kopano_versions.outputs.webapp_version_tags }}
|
tags: ${{ steps.kopano-versions.outputs.webapp_version_tags }}
|
||||||
- uses: ./.github/actions/build-component
|
- uses: ./.github/actions/build-component
|
||||||
with:
|
with:
|
||||||
push: false
|
push: false
|
||||||
component: zpush
|
component: zpush
|
||||||
tags: ${{ steps.kopano_versions.outputs.zpush_version_tags }}
|
tags: ${{ steps.kopano-versions.outputs.zpush_version_tags }}
|
||||||
# - name: Test
|
# - name: Test
|
||||||
# run: |
|
# run: |
|
||||||
# echo "KCCONF_SERVER_SURVEYCLIENT_INTERVAL=0" >> kopano_server.env
|
# echo "KCCONF_SERVER_SURVEYCLIENT_INTERVAL=0" >> kopano_server.env
|
||||||
|
Loading…
x
Reference in New Issue
Block a user