Skip to content

Commit

Permalink
feat: Tenants må spesifisere egen deploy-server
Browse files Browse the repository at this point in the history
Og vi vet tenant, så da kan vi gjøre det for de.
  • Loading branch information
Kyrremann committed Nov 15, 2024
1 parent 5924e05 commit a121aa6
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions actions/spa-deploy/v2/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,4 @@ runs:
CLUSTER: ${{ steps.setup.outputs.nais-cluster }}
RESOURCE: ${{ steps.setup.outputs.nais-resource }}
TEAM: ${{ inputs.team }}
DEPLOY_SERVER: ${{ steps.setup.outputs.nais-deploy-server }}
2 changes: 2 additions & 0 deletions actions/spa-setup-task/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ outputs:
description: 'NAIS resource files'
cdn-destination:
description: 'CDN destination'
nais-deploy-server:
description: 'Deploy server for each tenant'

runs:
using: 'node20'
Expand Down
2 changes: 2 additions & 0 deletions actions/spa-setup-task/dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion actions/spa-setup-task/dist/index.js.map

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions actions/spa-setup-task/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,12 @@ function run(): void {
tenant
)

const naisDeployServer = `https://deploy.${tenant}.cloud.nais.io:443`

core.setOutput('cdn-destination', cdnDest)
core.setOutput('nais-cluster', naisCluster)
core.setOutput('nais-resource', naisResources)
core.setOutput('nais-deploy-server', naisDeployServer)
}

run()

0 comments on commit a121aa6

Please sign in to comment.