From 11bc633c60ff0472f84c6eb7aa2dfdfed4094e47 Mon Sep 17 00:00:00 2001 From: Claudio Mansilla Date: Wed, 30 Oct 2024 17:05:52 -0300 Subject: [PATCH] changed token for the previus one, changed the deploy line to point to the ssm in aws and changed values to recieve all the information --- .github/workflows/publish.yml | 2 +- tapservicego/dagger/deploy.go | 2 +- tapservicego/deployments/tapservice/values.yaml | 8 +++----- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 2bfd558..1bf39ab 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -25,5 +25,5 @@ jobs: with: version: "latest" verb: call - args: publish-helm-charts --rootDir=.. --username=${{github.actor}} --password=${{secrets.TAP_TOKEN}} + args: publish-helm-charts --rootDir=.. --username=${{github.actor}} --password=${{github.token}} workdir: ./ci diff --git a/tapservicego/dagger/deploy.go b/tapservicego/dagger/deploy.go index b1305c6..de863f0 100644 --- a/tapservicego/dagger/deploy.go +++ b/tapservicego/dagger/deploy.go @@ -94,7 +94,7 @@ func (m *Tapservicego) helmValuesFile(container *dagger.Container) *dagger.Conta sourcePrefix := strings.Split(*m.HelmValuesSource, ":")[0] switch sourcePrefix { case "ssm": - parameterName := strings.TrimPrefix(*m.HelmValuesSource, "ssm:") + parameterName := strings.TrimPrefix(*m.HelmValuesSource, "tapservice-values-staging") value, err := getSsmValue(parameterName) if err != nil { log.Fatalf("Error getting SSM parameter: %v", err) diff --git a/tapservicego/deployments/tapservice/values.yaml b/tapservicego/deployments/tapservice/values.yaml index 27b35d8..c1df603 100644 --- a/tapservicego/deployments/tapservice/values.yaml +++ b/tapservicego/deployments/tapservice/values.yaml @@ -5,7 +5,7 @@ replicaCount: 1 image: - repository: "ghcr.io/alercebroker/lightcurve" + repository: "" pullPolicy: IfNotPresent # Overrides the image tag whose default is the chart appVersion. tag: "" @@ -51,7 +51,7 @@ ingress: # Host should be the CNAME in Route53 that points to the ALB - host: api.staging.alerce.online paths: - - path: / + - path: "" pathType: Prefix tls: [] # - secretName: chart-example-tls @@ -103,6 +103,4 @@ affinity: {} secret: name: "container-secrets" - databaseUrl: "" - -namespace: "" + databaseUrl: "" \ No newline at end of file