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 }} #