Skip to content

Commit ec849d5

Browse files
committed
[TEST] buildcache feature
1 parent c92e4af commit ec849d5

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/docker-hub-publish-base.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,5 @@ jobs:
2020
tags: |
2121
imiobe/iadelib:base
2222
"${{ secrets.HARBOR_URL }}/delib/iadelib:base"
23-
dockerfile: ./docker/Dockerfile-base
23+
dockerfile: ./docker/Dockerfile-base
24+
cache-image: "${{ secrets.HARBOR_URL }}/delib/iadelib:base-buildcache"

actions/harbor/action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ inputs:
2727
description: 'Path to Dockerfile'
2828
required: true
2929
default: ./docker/Dockerfile-latest
30+
cache-image:
31+
description: 'Cache image name'
32+
required: false
3033
runs:
3134
using: "composite"
3235
steps:
@@ -57,3 +60,5 @@ runs:
5760
pull: true
5861
push: true
5962
build-args: PROFILE=${{ inputs.profile }}.cfg
63+
cache-from: type=registry,ref=${{ inputs.cache-image }}
64+
cache-to: type=registry,ref=${{ inputs.cache-image }},mode=min

0 commit comments

Comments
 (0)