From 2eddbb88bf7ec59b91d651f419e40feb25de314a Mon Sep 17 00:00:00 2001 From: Kirill Plis Date: Thu, 30 Jan 2025 13:13:28 +0100 Subject: [PATCH 01/17] try latest --- .github/workflows/build-image.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-image.yaml b/.github/workflows/build-image.yaml index 2c808d9..0d5a628 100644 --- a/.github/workflows/build-image.yaml +++ b/.github/workflows/build-image.yaml @@ -172,7 +172,7 @@ jobs: APP_NAME=${{ github.event.deployment.payload.name }} ENVIRONMENT=${{ github.event.deployment.payload.env }} NPM_GITHUB_TOKEN=${{ secrets.npmGithubReadToken }} - cache-from: type=registry,ref=${{ inputs.registryHostname }}/${{ github.event.deployment.payload.name }}:cache + cache-from: type=registry,ref=${{ steps.login-ecr.outputs.registry }}/${{ github.event.deployment.payload.name }}:latest cache-to: type=inline context: ${{ github.event.deployment.payload.container.context }} load: true From 48a71f911f6a0fa899008c12c08cd01cd524eb57 Mon Sep 17 00:00:00 2001 From: Kirill Plis Date: Thu, 30 Jan 2025 13:15:54 +0100 Subject: [PATCH 02/17] set branch --- .github/workflows/kubernetes.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/kubernetes.yaml b/.github/workflows/kubernetes.yaml index b572fd2..1553ec7 100644 --- a/.github/workflows/kubernetes.yaml +++ b/.github/workflows/kubernetes.yaml @@ -178,7 +178,7 @@ jobs: build: needs: [initialize] - uses: parcelLab/ci/.github/workflows/build-image.yaml@main + uses: parcelLab/ci/.github/workflows/build-image.yaml@INF-2225/adjust-image-caching with: artifactName: ${{ inputs.artifactName }} artifactPath: ${{ inputs.artifactPath }} From f59842ac777a7fc48451df2d00365822079f8cd1 Mon Sep 17 00:00:00 2001 From: Kirill Plis Date: Thu, 30 Jan 2025 13:56:07 +0100 Subject: [PATCH 03/17] set branch --- .github/workflows/build-image.yaml | 2 +- .github/workflows/kubernetes.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-image.yaml b/.github/workflows/build-image.yaml index 0d5a628..689813c 100644 --- a/.github/workflows/build-image.yaml +++ b/.github/workflows/build-image.yaml @@ -313,7 +313,7 @@ jobs: APP_NAME=${{ github.event.deployment.payload.name }} ENVIRONMENT=${{ github.event.deployment.payload.env }} NPM_GITHUB_TOKEN=${{ secrets.npmGithubReadToken }} - cache-from: type=registry,ref=${{ inputs.registryHostname }}/${{ github.event.deployment.payload.name }}:cache + cache-from: type=registry,ref=${{ steps.login-ecr.outputs.registry }}/${{ github.event.deployment.payload.name }}:latest cache-to: type=inline context: ${{ github.event.deployment.payload.container.context }} load: true diff --git a/.github/workflows/kubernetes.yaml b/.github/workflows/kubernetes.yaml index 1553ec7..b572fd2 100644 --- a/.github/workflows/kubernetes.yaml +++ b/.github/workflows/kubernetes.yaml @@ -178,7 +178,7 @@ jobs: build: needs: [initialize] - uses: parcelLab/ci/.github/workflows/build-image.yaml@INF-2225/adjust-image-caching + uses: parcelLab/ci/.github/workflows/build-image.yaml@main with: artifactName: ${{ inputs.artifactName }} artifactPath: ${{ inputs.artifactPath }} From ec930aaa83fe0a718f2cc8f9e885564d64572081 Mon Sep 17 00:00:00 2001 From: Kirill Plis Date: Thu, 30 Jan 2025 14:08:11 +0100 Subject: [PATCH 04/17] set branch again --- .github/workflows/kubernetes.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/kubernetes.yaml b/.github/workflows/kubernetes.yaml index b572fd2..1553ec7 100644 --- a/.github/workflows/kubernetes.yaml +++ b/.github/workflows/kubernetes.yaml @@ -178,7 +178,7 @@ jobs: build: needs: [initialize] - uses: parcelLab/ci/.github/workflows/build-image.yaml@main + uses: parcelLab/ci/.github/workflows/build-image.yaml@INF-2225/adjust-image-caching with: artifactName: ${{ inputs.artifactName }} artifactPath: ${{ inputs.artifactPath }} From f8d6c7dda1fca17c212967c949fd3c47b7bcf8da Mon Sep 17 00:00:00 2001 From: Kirill Plis Date: Thu, 30 Jan 2025 14:35:11 +0100 Subject: [PATCH 05/17] try to use cashe separately --- .github/workflows/build-image.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-image.yaml b/.github/workflows/build-image.yaml index 689813c..e6627e6 100644 --- a/.github/workflows/build-image.yaml +++ b/.github/workflows/build-image.yaml @@ -172,8 +172,8 @@ jobs: APP_NAME=${{ github.event.deployment.payload.name }} ENVIRONMENT=${{ github.event.deployment.payload.env }} NPM_GITHUB_TOKEN=${{ secrets.npmGithubReadToken }} - cache-from: type=registry,ref=${{ steps.login-ecr.outputs.registry }}/${{ github.event.deployment.payload.name }}:latest - cache-to: type=inline + cache-from: type=registry,ref=${{ steps.login-ecr.outputs.registry }}/${{ github.event.deployment.payload.name }} + cache-to: type=registry,ref=${{ steps.login-ecr.outputs.registry }}/${{ github.event.deployment.payload.name }},mode=max context: ${{ github.event.deployment.payload.container.context }} load: true file: ${{ github.event.deployment.payload.container.file }} From 7a3c3d42cd4e66869365bb017d53efe6b26dd010 Mon Sep 17 00:00:00 2001 From: Kirill Plis Date: Thu, 30 Jan 2025 14:54:36 +0100 Subject: [PATCH 06/17] try inline --- .github/workflows/build-image.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-image.yaml b/.github/workflows/build-image.yaml index e6627e6..8c3ee3b 100644 --- a/.github/workflows/build-image.yaml +++ b/.github/workflows/build-image.yaml @@ -173,7 +173,7 @@ jobs: ENVIRONMENT=${{ github.event.deployment.payload.env }} NPM_GITHUB_TOKEN=${{ secrets.npmGithubReadToken }} cache-from: type=registry,ref=${{ steps.login-ecr.outputs.registry }}/${{ github.event.deployment.payload.name }} - cache-to: type=registry,ref=${{ steps.login-ecr.outputs.registry }}/${{ github.event.deployment.payload.name }},mode=max + cache-to: type=inline context: ${{ github.event.deployment.payload.container.context }} load: true file: ${{ github.event.deployment.payload.container.file }} From 0ff6a1f9d0b6f08c9eee12d3063e0e59d6dd63d1 Mon Sep 17 00:00:00 2001 From: Kirill Plis Date: Thu, 30 Jan 2025 15:12:52 +0100 Subject: [PATCH 07/17] try registry cache again --- .github/workflows/build-image.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-image.yaml b/.github/workflows/build-image.yaml index 8c3ee3b..e6627e6 100644 --- a/.github/workflows/build-image.yaml +++ b/.github/workflows/build-image.yaml @@ -173,7 +173,7 @@ jobs: ENVIRONMENT=${{ github.event.deployment.payload.env }} NPM_GITHUB_TOKEN=${{ secrets.npmGithubReadToken }} cache-from: type=registry,ref=${{ steps.login-ecr.outputs.registry }}/${{ github.event.deployment.payload.name }} - cache-to: type=inline + cache-to: type=registry,ref=${{ steps.login-ecr.outputs.registry }}/${{ github.event.deployment.payload.name }},mode=max context: ${{ github.event.deployment.payload.container.context }} load: true file: ${{ github.event.deployment.payload.container.file }} From b7c12ab50cdaa94f2b1d8e5522ef50017255c4ca Mon Sep 17 00:00:00 2001 From: Kirill Plis Date: Fri, 31 Jan 2025 09:21:12 +0100 Subject: [PATCH 08/17] use inline --- .github/workflows/build-image.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-image.yaml b/.github/workflows/build-image.yaml index e6627e6..006c501 100644 --- a/.github/workflows/build-image.yaml +++ b/.github/workflows/build-image.yaml @@ -173,7 +173,7 @@ jobs: ENVIRONMENT=${{ github.event.deployment.payload.env }} NPM_GITHUB_TOKEN=${{ secrets.npmGithubReadToken }} cache-from: type=registry,ref=${{ steps.login-ecr.outputs.registry }}/${{ github.event.deployment.payload.name }} - cache-to: type=registry,ref=${{ steps.login-ecr.outputs.registry }}/${{ github.event.deployment.payload.name }},mode=max + cache-to: type=inline context: ${{ github.event.deployment.payload.container.context }} load: true file: ${{ github.event.deployment.payload.container.file }} @@ -313,7 +313,7 @@ jobs: APP_NAME=${{ github.event.deployment.payload.name }} ENVIRONMENT=${{ github.event.deployment.payload.env }} NPM_GITHUB_TOKEN=${{ secrets.npmGithubReadToken }} - cache-from: type=registry,ref=${{ steps.login-ecr.outputs.registry }}/${{ github.event.deployment.payload.name }}:latest + cache-from: type=registry,ref=${{ steps.login-ecr.outputs.registry }}/${{ github.event.deployment.payload.name }} cache-to: type=inline context: ${{ github.event.deployment.payload.container.context }} load: true From b2d788d3d73a528ff11dae16453800a6bc2649f3 Mon Sep 17 00:00:00 2001 From: Kirill Plis Date: Fri, 31 Jan 2025 09:29:48 +0100 Subject: [PATCH 09/17] try latest again --- .github/workflows/build-image.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-image.yaml b/.github/workflows/build-image.yaml index 006c501..689813c 100644 --- a/.github/workflows/build-image.yaml +++ b/.github/workflows/build-image.yaml @@ -172,7 +172,7 @@ jobs: APP_NAME=${{ github.event.deployment.payload.name }} ENVIRONMENT=${{ github.event.deployment.payload.env }} NPM_GITHUB_TOKEN=${{ secrets.npmGithubReadToken }} - cache-from: type=registry,ref=${{ steps.login-ecr.outputs.registry }}/${{ github.event.deployment.payload.name }} + cache-from: type=registry,ref=${{ steps.login-ecr.outputs.registry }}/${{ github.event.deployment.payload.name }}:latest cache-to: type=inline context: ${{ github.event.deployment.payload.container.context }} load: true @@ -313,7 +313,7 @@ jobs: APP_NAME=${{ github.event.deployment.payload.name }} ENVIRONMENT=${{ github.event.deployment.payload.env }} NPM_GITHUB_TOKEN=${{ secrets.npmGithubReadToken }} - cache-from: type=registry,ref=${{ steps.login-ecr.outputs.registry }}/${{ github.event.deployment.payload.name }} + cache-from: type=registry,ref=${{ steps.login-ecr.outputs.registry }}/${{ github.event.deployment.payload.name }}:latest cache-to: type=inline context: ${{ github.event.deployment.payload.container.context }} load: true From 9937e9ae9b80cb388fbcc6782afc709f99ac1f46 Mon Sep 17 00:00:00 2001 From: Kirill Plis Date: Fri, 31 Jan 2025 11:42:16 +0100 Subject: [PATCH 10/17] try cache-to registry --- .github/workflows/build-image.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-image.yaml b/.github/workflows/build-image.yaml index 689813c..30b7ba1 100644 --- a/.github/workflows/build-image.yaml +++ b/.github/workflows/build-image.yaml @@ -173,7 +173,7 @@ jobs: ENVIRONMENT=${{ github.event.deployment.payload.env }} NPM_GITHUB_TOKEN=${{ secrets.npmGithubReadToken }} cache-from: type=registry,ref=${{ steps.login-ecr.outputs.registry }}/${{ github.event.deployment.payload.name }}:latest - cache-to: type=inline + cache-to: mode=max,image-manifest=true,oci-mediatypes=true,type=registry,ref=${{ steps.login-ecr.outputs.registry }}/${{ github.event.deployment.payload.name }}:latest \ context: ${{ github.event.deployment.payload.container.context }} load: true file: ${{ github.event.deployment.payload.container.file }} From ebc59b26cd2450f0597364a1a30eb5886862501f Mon Sep 17 00:00:00 2001 From: Kirill Plis Date: Fri, 31 Jan 2025 11:46:43 +0100 Subject: [PATCH 11/17] remove slash --- .github/workflows/build-image.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-image.yaml b/.github/workflows/build-image.yaml index 30b7ba1..e5fa506 100644 --- a/.github/workflows/build-image.yaml +++ b/.github/workflows/build-image.yaml @@ -173,7 +173,7 @@ jobs: ENVIRONMENT=${{ github.event.deployment.payload.env }} NPM_GITHUB_TOKEN=${{ secrets.npmGithubReadToken }} cache-from: type=registry,ref=${{ steps.login-ecr.outputs.registry }}/${{ github.event.deployment.payload.name }}:latest - cache-to: mode=max,image-manifest=true,oci-mediatypes=true,type=registry,ref=${{ steps.login-ecr.outputs.registry }}/${{ github.event.deployment.payload.name }}:latest \ + cache-to: mode=max,image-manifest=true,oci-mediatypes=true,type=registry,ref=${{ steps.login-ecr.outputs.registry }}/${{ github.event.deployment.payload.name }}:latest context: ${{ github.event.deployment.payload.container.context }} load: true file: ${{ github.event.deployment.payload.container.file }} From d383a4b6004f4f32239aef9b29d7fa6544bcaa09 Mon Sep 17 00:00:00 2001 From: Kirill Plis Date: Fri, 31 Jan 2025 14:53:59 +0100 Subject: [PATCH 12/17] try inline again --- .github/workflows/build-image.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-image.yaml b/.github/workflows/build-image.yaml index e5fa506..689813c 100644 --- a/.github/workflows/build-image.yaml +++ b/.github/workflows/build-image.yaml @@ -173,7 +173,7 @@ jobs: ENVIRONMENT=${{ github.event.deployment.payload.env }} NPM_GITHUB_TOKEN=${{ secrets.npmGithubReadToken }} cache-from: type=registry,ref=${{ steps.login-ecr.outputs.registry }}/${{ github.event.deployment.payload.name }}:latest - cache-to: mode=max,image-manifest=true,oci-mediatypes=true,type=registry,ref=${{ steps.login-ecr.outputs.registry }}/${{ github.event.deployment.payload.name }}:latest + cache-to: type=inline context: ${{ github.event.deployment.payload.container.context }} load: true file: ${{ github.event.deployment.payload.container.file }} From ca837d5f77eba1b210daffbd37f3a7f5c7d894c4 Mon Sep 17 00:00:00 2001 From: Kirill Plis Date: Fri, 31 Jan 2025 15:27:30 +0100 Subject: [PATCH 13/17] try image-manifest again --- .github/workflows/build-image.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-image.yaml b/.github/workflows/build-image.yaml index 689813c..e5fa506 100644 --- a/.github/workflows/build-image.yaml +++ b/.github/workflows/build-image.yaml @@ -173,7 +173,7 @@ jobs: ENVIRONMENT=${{ github.event.deployment.payload.env }} NPM_GITHUB_TOKEN=${{ secrets.npmGithubReadToken }} cache-from: type=registry,ref=${{ steps.login-ecr.outputs.registry }}/${{ github.event.deployment.payload.name }}:latest - cache-to: type=inline + cache-to: mode=max,image-manifest=true,oci-mediatypes=true,type=registry,ref=${{ steps.login-ecr.outputs.registry }}/${{ github.event.deployment.payload.name }}:latest context: ${{ github.event.deployment.payload.container.context }} load: true file: ${{ github.event.deployment.payload.container.file }} From 5cd5305f51b1104ec55692057b3da2bbcf22db6a Mon Sep 17 00:00:00 2001 From: Kirill Plis Date: Mon, 3 Feb 2025 09:43:39 +0100 Subject: [PATCH 14/17] try inline --- .github/workflows/build-image.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-image.yaml b/.github/workflows/build-image.yaml index e5fa506..689813c 100644 --- a/.github/workflows/build-image.yaml +++ b/.github/workflows/build-image.yaml @@ -173,7 +173,7 @@ jobs: ENVIRONMENT=${{ github.event.deployment.payload.env }} NPM_GITHUB_TOKEN=${{ secrets.npmGithubReadToken }} cache-from: type=registry,ref=${{ steps.login-ecr.outputs.registry }}/${{ github.event.deployment.payload.name }}:latest - cache-to: mode=max,image-manifest=true,oci-mediatypes=true,type=registry,ref=${{ steps.login-ecr.outputs.registry }}/${{ github.event.deployment.payload.name }}:latest + cache-to: type=inline context: ${{ github.event.deployment.payload.container.context }} load: true file: ${{ github.event.deployment.payload.container.file }} From 2ea06283e89c5088eaacb8f6f05d747f9ed9beaf Mon Sep 17 00:00:00 2001 From: Kirill Plis Date: Mon, 3 Feb 2025 12:24:38 +0100 Subject: [PATCH 15/17] try to use cacheconfig --- .github/workflows/build-image.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-image.yaml b/.github/workflows/build-image.yaml index 689813c..6ec4b2c 100644 --- a/.github/workflows/build-image.yaml +++ b/.github/workflows/build-image.yaml @@ -172,8 +172,8 @@ jobs: APP_NAME=${{ github.event.deployment.payload.name }} ENVIRONMENT=${{ github.event.deployment.payload.env }} NPM_GITHUB_TOKEN=${{ secrets.npmGithubReadToken }} - cache-from: type=registry,ref=${{ steps.login-ecr.outputs.registry }}/${{ github.event.deployment.payload.name }}:latest - cache-to: type=inline + cache-from: type=registry,ref=${{ steps.login-ecr.outputs.registry }}/${{ github.event.deployment.payload.name }}:cache + cache-to: mode=max,image-manifest=true,oci-mediatypes=true,type=registry,ref=${{ steps.login-ecr.outputs.registry }}/${{ github.event.deployment.payload.name }}:cache context: ${{ github.event.deployment.payload.container.context }} load: true file: ${{ github.event.deployment.payload.container.file }} From f43ecf57cbaaeebfd102dc4624b1a5868340f137 Mon Sep 17 00:00:00 2001 From: Kirill Plis Date: Mon, 3 Feb 2025 13:00:16 +0100 Subject: [PATCH 16/17] apply the same for matrix --- .github/workflows/build-image.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-image.yaml b/.github/workflows/build-image.yaml index 6ec4b2c..c85429e 100644 --- a/.github/workflows/build-image.yaml +++ b/.github/workflows/build-image.yaml @@ -313,8 +313,8 @@ jobs: APP_NAME=${{ github.event.deployment.payload.name }} ENVIRONMENT=${{ github.event.deployment.payload.env }} NPM_GITHUB_TOKEN=${{ secrets.npmGithubReadToken }} - cache-from: type=registry,ref=${{ steps.login-ecr.outputs.registry }}/${{ github.event.deployment.payload.name }}:latest - cache-to: type=inline + cache-from: type=registry,ref=${{ steps.login-ecr.outputs.registry }}/${{ github.event.deployment.payload.name }}:cache + cache-to: mode=max,image-manifest=true,oci-mediatypes=true,type=registry,ref=${{ steps.login-ecr.outputs.registry }}/${{ github.event.deployment.payload.name }}:cache context: ${{ github.event.deployment.payload.container.context }} load: true file: ${{ github.event.deployment.payload.container.file }} From a3502ec8b38d6a9bf57d70262c9056553645f400 Mon Sep 17 00:00:00 2001 From: Kirill Plis Date: Mon, 3 Feb 2025 13:40:12 +0100 Subject: [PATCH 17/17] fix branch --- .github/workflows/kubernetes.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/kubernetes.yaml b/.github/workflows/kubernetes.yaml index 1553ec7..b572fd2 100644 --- a/.github/workflows/kubernetes.yaml +++ b/.github/workflows/kubernetes.yaml @@ -178,7 +178,7 @@ jobs: build: needs: [initialize] - uses: parcelLab/ci/.github/workflows/build-image.yaml@INF-2225/adjust-image-caching + uses: parcelLab/ci/.github/workflows/build-image.yaml@main with: artifactName: ${{ inputs.artifactName }} artifactPath: ${{ inputs.artifactPath }}