mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
Merge pull request #13023 from appwrite/fix/extract-depends-on-source
fix(deployment): declare the extract artifact's dependency on source
This commit is contained in:
1 file changed
+2
-2
@@ -156,7 +156,7 @@ readonly class Orchestrator extends Backend
|
||||
$subdir = \trim($source['subdir'] ?? '', '/');
|
||||
$sourceArtifacts = [
|
||||
new DownloadArtifact(id: 'source', in: $source['url'], out: 'source.tar.gz'),
|
||||
new UnarchiveArtifact(id: 'extract', in: 'source.tar.gz', out: 'source', subdir: $subdir !== '' ? $subdir : null, strip: true),
|
||||
new UnarchiveArtifact(id: 'extract', in: 'source.tar.gz', out: 'source', subdir: $subdir !== '' ? $subdir : null, strip: true, depends: 'source'),
|
||||
// Appwrite never sees the remote source (the sidecar fetches it),
|
||||
// so unlike the uploaded-tarball path it can't size it. Stat the
|
||||
// downloaded archive so the orchestrator reports its byte size in
|
||||
@@ -176,7 +176,7 @@ readonly class Orchestrator extends Backend
|
||||
]);
|
||||
$sourceArtifacts = [
|
||||
new DownloadArtifact(id: 'source', in: $sourceUrl, out: 'source.tar.gz'),
|
||||
new UnarchiveArtifact(id: 'extract', in: 'source.tar.gz', out: 'source'),
|
||||
new UnarchiveArtifact(id: 'extract', in: 'source.tar.gz', out: 'source', depends: 'source'),
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user