From 0e5d5b4898bb50bdc1f4b5f7bcc438539d074f17 Mon Sep 17 00:00:00 2001 From: Stefan McShane Date: Mon, 7 Oct 2024 19:26:02 -0400 Subject: [PATCH] Update porter_stack_stefan-testcachemultistep.yml --- .../workflows/porter_stack_stefan-testcachemultistep.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/porter_stack_stefan-testcachemultistep.yml b/.github/workflows/porter_stack_stefan-testcachemultistep.yml index c978479..276c935 100644 --- a/.github/workflows/porter_stack_stefan-testcachemultistep.yml +++ b/.github/workflows/porter_stack_stefan-testcachemultistep.yml @@ -12,6 +12,9 @@ jobs: - name: Set Github tag id: vars run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT + - name: Set Github tag log + id: vars + run: echo "sha_long=$(git log -1 --format=%H)" >> $GITHUB_OUTPUT - name: Setup porter uses: porter-dev/setup-porter@v0.1.0 @@ -52,6 +55,6 @@ jobs: DOCKER_BUILDKIT: "1" # BUILDKIT_INLINE_CACHE: "1" - # PORTER_BUILDKIT_COMPLETE_OVERRIDE: build -f DockerfileStefanTest --cache-to mode=max,image-manifest=true,oci-mediatypes=true,type=registry,ref=813111008191.dkr.ecr.us-east-2.amazonaws.com/stefan-testcachemultistep:${{ steps.vars.outputs.sha_short }} --push --tag 813111008191.dkr.ecr.us-east-2.amazonaws.com/stefan-testcachemultistep:${{ steps.vars.outputs.sha_short }} --cache-from type=registry,ref=813111008191.dkr.ecr.us-east-2.amazonaws.com/stefan-testcachemultistep . - PORTER_BUILDKIT_COMPLETE_OVERRIDE: build -f DockerfileStefanTest . --cache-from type=gha --cache-to type=gha,mode=max --tag 813111008191.dkr.ecr.us-east-2.amazonaws.com/stefan-testcachemultistep:${{ steps.vars.outputs.sha_short }} + # PORTER_BUILDKIT_COMPLETE_OVERRIDE: build -f DockerfileStefanTest --cache-to mode=max,image-manifest=true,oci-mediatypes=true,type=registry,ref=813111008191.dkr.ecr.us-east-2.amazonaws.com/stefan-testcachemultistep:${{ steps.vars.outputs.sha_long }} --push --tag 813111008191.dkr.ecr.us-east-2.amazonaws.com/stefan-testcachemultistep:${{ steps.vars.outputs.sha_long }} --cache-from type=registry,ref=813111008191.dkr.ecr.us-east-2.amazonaws.com/stefan-testcachemultistep . + PORTER_BUILDKIT_COMPLETE_OVERRIDE: build -f DockerfileStefanTest . --cache-from type=gha --cache-to type=gha,mode=max --tag 813111008191.dkr.ecr.us-east-2.amazonaws.com/stefan-testcachemultistep:${{ steps.vars.outputs.sha_long }} #