Skip to content

Commit

Permalink
Bug 1308903 - Update TC docker image at least every month r=franziskus
Browse files Browse the repository at this point in the history
Differential Revision: https://nss-dev.phacility.com/D77

--HG--
extra : amend_source : 17d8c24f2d8ad58c4c0b75f17f03e5b627786d26
  • Loading branch information
Tim Taubert committed Oct 10, 2016
1 parent 2e35aab commit 8dac57f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion automation/taskcluster/graph/src/context_hash.js
Expand Up @@ -36,5 +36,8 @@ export default function (context_path) {
return sha256(file + "|" + fs.readFileSync(file, "utf-8"));
});

return sha256(hashes.join(","));
// Generate a new prefix every month to ensure the image stays buildable.
let now = new Date();
let prefix = `${now.getUTCFullYear()}-${now.getUTCMonth() + 1}:`;
return sha256(prefix + hashes.join(","));
}
2 changes: 1 addition & 1 deletion automation/taskcluster/graph/src/image_builder.js
Expand Up @@ -45,7 +45,7 @@ export async function buildTask({name, path}) {
artifacts: {
"public/image.tar": {
type: "file",
expires: 24 * 365,
expires: 24 * 90,
path: "/artifacts/image.tar"
}
},
Expand Down

0 comments on commit 8dac57f

Please sign in to comment.