Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ inputs:
required: true

runs:
using: "node12"
using: "node16"
main: "dist/index.js"

4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ const duration = require('parse-duration');
abort("docker build args require --file")
}

const primaryKey = sha256(`${cacheKey} ${dockerBuildArgs} ${sha256File(dockerfile)}`)
const firstTag = dockerBuildTags[0]
const hash = sha256(`${cacheKey} ${dockerBuildArgs} ${sha256File(dockerfile)}`)
const primaryKey = firstTag + hash
const cachePath = path.join(runnerTemp, "cached-docker-build", primaryKey)
let cacheHit = false

Expand Down