From fe662ef6b685ced13e6aa1f0736aaa15bf1d16ff Mon Sep 17 00:00:00 2001 From: Claudio Mansilla Date: Mon, 4 Nov 2024 13:16:58 -0300 Subject: [PATCH] changed trigger to push on main branch, username to alercebroker and changed tap_token value --- .github/workflows/publish.yml | 13 ++++++++++--- tapservicego/deployments/tapservice/values.yaml | 16 +++++++--------- 2 files changed, 17 insertions(+), 12 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 536deee..66dc9e7 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,9 +1,12 @@ ---- name: Publish on: push: branches: [main] +permissions: + contents: read + packages: write + jobs: publish: name: publish @@ -14,16 +17,20 @@ jobs: - name: Call Dagger Publish Function uses: dagger/dagger-for-github@v5 + env: + GH_TOKEN: ${{ secrets.TAP_TOKEN }} with: version: "latest" verb: call - args: publish-images --rootDir=.. --username=${{github.actor}} --password=${{secrets.GITHUB_TOKEN}} --tags=rc + args: publish-images --rootDir=.. --username=alercebroker --password=env:GH_TOKEN --tags=rc workdir: ./ci - name: Call Dagger Publish Helm Charts Function uses: dagger/dagger-for-github@v5 + env: + GH_TOKEN: ${{ secrets.TAP_TOKEN }} with: version: "latest" verb: call - args: publish-helm-charts --rootDir=.. --username=${{github.actor}} --password=${{github.token}} + args: publish-helm-charts --rootDir=.. --username=alercebroker --password=env:GH_TOKEN workdir: ./ci diff --git a/tapservicego/deployments/tapservice/values.yaml b/tapservicego/deployments/tapservice/values.yaml index a6eefd9..c1df603 100644 --- a/tapservicego/deployments/tapservice/values.yaml +++ b/tapservicego/deployments/tapservice/values.yaml @@ -39,19 +39,19 @@ service: port: 80 ingress: - enabled: false + enabled: true className: "alb" annotations: alb.ingress.kubernetes.io/target-type: ip - alb.ingress.kubernetes.io/tags: + alb.ingress.kubernetes.io/tags: "" alb.ingress.kubernetes.io/scheme: internet-facing - alb.ingress.kubernetes.io/certificate-arn: - alb.ingress.kubernetes.io/group.name: + alb.ingress.kubernetes.io/certificate-arn: "" + alb.ingress.kubernetes.io/group.name: "" hosts: # Host should be the CNAME in Route53 that points to the ALB - - host: + - 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