From 7044dc7eb13cd97f374dd244663ed1af7ad7d152 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Fri, 18 Nov 2022 18:25:09 +0100 Subject: [PATCH] build ee internally --- .github/workflows/docker-image.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index daf5970fab..2aa636ba99 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -127,7 +127,6 @@ jobs: publish_privately_heavy: runs-on: [self-hosted, new] - needs: [build] if: github.event_name != 'pull_request' steps: - uses: actions/checkout@v3 @@ -164,12 +163,14 @@ jobs: with: context: . push: true - file: ./docker/DockerfileHeavy + file: ./Dockerfile + build-args: | + features=enterprise tags: | ${{ steps.meta-heavy.outputs.tags }} labels: ${{ steps.meta-heavy.outputs.labels }} - cache-from: type=registry,ref=${{ env.LOCAL_REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache - cache-to: type=registry,ref=${{ env.LOCAL_REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache,mode=max + cache-from: type=registry,ref=${{ env.LOCAL_REGISTRY }}/${{ env.IMAGE_NAME }}-ee:buildcache + cache-to: type=registry,ref=${{ env.LOCAL_REGISTRY }}/${{ env.IMAGE_NAME }}-ee:buildcache,mode=max publish_privately_helm: runs-on: [self-hosted, new] @@ -200,5 +201,5 @@ jobs: file: ./docker/DockerfileHelm tags: | ${{ env.ECR_REGISTRY }}/${{ env.IMAGE_NAME }}:helm - cache-from: type=registry,ref=${{ env.LOCAL_REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache - cache-to: type=registry,ref=${{ env.LOCAL_REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache,mode=max + cache-from: type=registry,ref=${{ env.LOCAL_REGISTRY }}/${{ env.IMAGE_NAME }}-helm:buildcache + cache-to: type=registry,ref=${{ env.LOCAL_REGISTRY }}/${{ env.IMAGE_NAME }}-helm:buildcache,mode=max