Skip to content

Commit

Permalink
fix(do): fixed DigitalOcean image
Browse files Browse the repository at this point in the history
  • Loading branch information
Lasim committed Dec 23, 2024
1 parent 55a0d22 commit 485dbd5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/parsers/digitalocean.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ class DigitalOceanParser extends BaseParser {
const dockerImageInfo = serviceConfig.image;
const imageString = constructImageString(dockerImageInfo);
const [repository, tag] = imageString.split(':');
const imageComponents = repository.split('/');

const routePath = isFirstService ? '/' : `/${serviceName}`;
isFirstService = false;
Expand All @@ -59,7 +60,8 @@ class DigitalOceanParser extends BaseParser {
name: digitalOceanParserServiceName(serviceName),
image: {
registry_type: getRegistryType(dockerImageInfo),
repository: repository,
registry: imageComponents[1],
repository: imageComponents[2],
tag: tag || 'latest'
},
http_port: ports.size > 0 ? Array.from(ports)[0] : undefined,
Expand Down

0 comments on commit 485dbd5

Please sign in to comment.