Skip to content

Commit 1ca370b

Browse files
authored
Merge pull request #1183 from crazy-max/revert-gha-cache-to
revert "set repository and ghtoken attributes for gha cache type"
2 parents a254f8c + 2c95ebe commit 1ca370b

File tree

4 files changed

+3
-24
lines changed

4 files changed

+3
-24
lines changed

__tests__/context.test.ts

-21
Original file line numberDiff line numberDiff line change
@@ -799,27 +799,6 @@ ANOTHER_SECRET=ANOTHER_SECRET_ENV`]
799799
'.'
800800
]
801801
],
802-
[
803-
34,
804-
'0.14.1',
805-
new Map<string, string>([
806-
['context', '.'],
807-
['load', 'false'],
808-
['no-cache', 'false'],
809-
['push', 'false'],
810-
['pull', 'false'],
811-
['cache-to', 'type=gha'],
812-
['github-token', `abcd1234`],
813-
]),
814-
[
815-
'build',
816-
'--cache-to', 'type=gha,repository=docker/build-push-action,ghtoken=abcd1234',
817-
'--iidfile', imageIDFilePath,
818-
'--attest', `type=provenance,mode=min,inline-only=true,builder-id=https://github.com/docker/build-push-action/actions/runs/123456789/attempts/1`,
819-
'--metadata-file', metadataJson,
820-
'.'
821-
]
822-
],
823802
])(
824803
'[%d] given %p with %p as inputs, returns %p',
825804
async (num: number, buildxVersion: string, inputs: Map<string, string>, expected: Array<string>) => {

dist/index.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/context.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ async function getBuildArgs(inputs: Inputs, context: string, toolkit: Toolkit):
139139
args.push('--cache-from', cacheFrom);
140140
});
141141
await Util.asyncForEach(inputs['cache-to'], async cacheTo => {
142-
args.push('--cache-to', Build.resolveCacheToAttrs(cacheTo, inputs['github-token']));
142+
args.push('--cache-to', cacheTo);
143143
});
144144
if (inputs['cgroup-parent']) {
145145
args.push('--cgroup-parent', inputs['cgroup-parent']);

0 commit comments

Comments
 (0)