Skip to content

Commit 88f8284

Browse files
committed
fix: update Nexus module configurations and README details
1 parent 3c890d0 commit 88f8284

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

registry/mavrickrishi/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
display_name: mavrickrishi
33
bio: Coder module contributor
4-
github: MAVRICK-1
4+
github: mavrick-1
55
status: community
66
---
77

registry/mavrickrishi/modules/nexus/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
2-
display_name: Sonatype Nexus Repository
2+
display_name: Nexus Repository
33
description: Configure package managers to use Sonatype Nexus Repository for Maven, npm, PyPI, and Docker registries.
4-
icon: /.icons/nexus.svg
5-
verified: false
6-
tags: [integration, nexus, maven, npm, pypi, docker]
4+
icon: ../../../.icons/nexus.svg
5+
verified: true
6+
tags: [integration, nexus-repository, maven, npm, pypi, docker]
77
---
88

99
# Sonatype Nexus Repository

registry/mavrickrishi/modules/nexus/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ data "coder_workspace_owner" "me" {}
8080

8181
locals {
8282
username = coalesce(var.nexus_username, var.username_field == "email" ? data.coder_workspace_owner.me.email : data.coder_workspace_owner.me.name)
83-
nexus_host = regex("^https?://([^:/]+)", var.nexus_url)[1]
83+
nexus_host = split("/", replace(replace(var.nexus_url, "https://", ""), "http://", ""))[0]
8484
}
8585

8686
locals {

registry/mavrickrishi/modules/nexus/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ config_complete() {
1111

1212
register_docker() {
1313
repo=$1
14-
echo -n "${NEXUS_PASSWORD}" | docker login "${NEXUS_HOST}" --username "${NEXUS_USERNAME}" --password-stdin
14+
echo -n "${NEXUS_PASSWORD}" | docker login "${NEXUS_HOST}/repository/$${repo}" --username "${NEXUS_USERNAME}" --password-stdin
1515
}
1616

1717
echo "🚀 Configuring Nexus repository access..."

0 commit comments

Comments
 (0)