Skip to content

Commit

Permalink
deploy: skjuler DEPLOY_SERVER for Nav
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyrremann committed Dec 13, 2024
1 parent a48c536 commit 9cffe3e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
9 changes: 6 additions & 3 deletions docs/build/how-to/build-and-deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,17 @@ This how-to guide shows you how to build and deploy your application using [Gith
- name: Deploy to NAIS
uses: nais/deploy/actions/deploy@v2
env:
CLUSTER: <MY-CLUSTER> # Replace
CLUSTER: <MY-CLUSTER> # Replace (1)
RESOURCE: .nais/app.yaml #, topic.yaml, statefulset.yaml, etc.
VAR: image=${{ steps.docker-build-push.outputs.image }}
TELEMETRY: ${{ steps.docker-build-push.outputs.telemetry }}
DEPLOY_SERVER: deploy.<<tenant()>>.cloud.nais.io:443

{%- if tenant() != "nav" %}
DEPLOY_SERVER: deploy.<<tenant()>>.cloud.nais.io:443
{%- endif %}
```

1. Cluster in this context is the same as the environment name. You can find the value in [workloads/environments](../workloads/reference/environments.md).

This example workflow is a minimal example that builds, signs, and pushes your container image to the image registry.
It then deploys the [app.yaml](../../workloads/application/reference/application-spec.md), injecting the image tag from the previous step.

Expand Down
4 changes: 3 additions & 1 deletion docs/tutorials/hello-nais.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,9 @@ Add the following content to the file, and insert the appropriate values in the
RESOURCE: .nais/app.yaml # This points to the file we created in the previous step
VAR: image=${{ steps.docker-build-push.outputs.image }}
TELEMETRY: ${{ steps.docker-build-push.outputs.telemetry }}
DEPLOY_SERVER: deploy.<<tenant()>>.cloud.nais.io:443
{%- if tenant() != "nav" %}
DEPLOY_SERVER: deploy.<<tenant()>>.cloud.nais.io:443
{%- endif %}
```

1. Cluster in this context is the same as the environment name. You can find the value in [workloads/environments](../workloads/reference/environments.md).
Expand Down

0 comments on commit 9cffe3e

Please sign in to comment.