@forge/cli
12.13.112.13.2-next.0-experimental-5b18257
out/containers/container-command.jsout/containers/container-command.js+5−4
Index: package/out/containers/container-command.js
===================================================================
--- package/out/containers/container-command.js
+++ package/out/containers/container-command.js
@@ -162,14 +162,14 @@
throw new UnexpectedAppContainerRegistryLoginError();
}
return appContainerRegistryLogin;
}
- async fetchImages(key, startCursor) {
+ async fetchImages(key, startCursor, imageTag) {
const { id: appId } = await this.getAppConfig();
const query = `
- query forge_cli_appContainer($appId: ID!, $containerKey: String!, $after: ID) {
+ query forge_cli_appContainer($appId: ID!, $containerKey: String!, $after: ID, $imageTag: String) {
appContainer(appId: $appId, containerKey: $containerKey) {
- images(first: 10, after: $after) {
+ images(first: 10, after: $after, imageTag: $imageTag) {
edges {
node {
digest
sizeInBytes
@@ -187,9 +187,10 @@
}`;
const { appContainer } = await this.client.query(query, {
appId,
containerKey: key,
- after: startCursor
+ after: startCursor,
+ imageTag
});
return {
images: appContainer?.images.edges.map(({ node }) => node) ?? [],
endCursor: appContainer?.images.pageInfo.endCursor ?? undefined,