Skip to content

Commit a6485cd

Browse files
authored
Merge pull request #12 from navikt/kommentarer-i-kode-docs
La til kommentarer for hvordan sette opp template til bruk
2 parents 8367e7e + 509ad58 commit a6485cd

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

.github/workflows/deploy.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@ jobs:
3636
- name: "Upload to cdn"
3737
uses: nais/deploy/actions/cdn-upload/v2@master
3838
with:
39-
team: min-side
39+
team: min-side # Change this to your team name
4040
source: ./dist/client/_astro
41-
destination: 'tms-microfrontend-template-ssr'
41+
destination: 'tms-microfrontend-template-ssr' # Change this to your application name
4242

4343
- name: "Build and push"
4444
uses: nais/docker-build-push@v0
4545
id: docker-build-push
4646
with:
47-
team: min-side
47+
team: min-side # Change this to your team name
4848

4949
outputs:
5050
image: ${{ steps.docker-build-push.outputs.image }}
@@ -53,13 +53,13 @@ jobs:
5353
uses: navikt/tms-deploy/.github/workflows/oppdater-mikrofrontend-manifest-v3.yaml@main
5454
needs: build
5555
with:
56-
id: "tms-microfrontend-template-ssr"
57-
url: "http://tms-microfrontend-template-ssr.min-side"
58-
appname: "tms-microfrontend-template-ssr"
59-
namespace: "min-side"
56+
id: "tms-microfrontend-template-ssr" # Change this to your application name
57+
url: "http://tms-microfrontend-template-ssr" # Change the url to contain your application name. Example: http://my-app
58+
appname: "tms-microfrontend-template-ssr" # Change this to your application name
59+
namespace: "min-side" # Change this to your namespace
6060
cluster: dev-gcp
6161
commitmsg: ${{ github.event.head_commit.message}}
62-
fallback: "fallback" # Should containt the path to the fallback page after src/pages/[locale]/...
62+
fallback: "fallback" # Should containt the path to the fallback page after src/pages/[locale]/... Only needs to be changed if you move the fallback in the pages structure
6363
ssr: true
6464
secrets: inherit
6565

nais/dev-gcp/nais.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
apiVersion: "nais.io/v1alpha1"
22
kind: "Application"
33
metadata:
4-
name: tms-microfrontend-template-ssr
5-
namespace: min-side
4+
name: tms-microfrontend-template-ssr # Change this to your application name
5+
namespace: min-side # Change this to your namespace
66
labels:
7-
team: min-side
7+
team: min-side # Change this to your team name
88
spec:
99
tokenx:
1010
enabled: true
@@ -30,6 +30,6 @@ spec:
3030
requests:
3131
cpu: "20m"
3232
memory: 128Mi
33-
env:
33+
env: # Add your environment variables here
3434
- name: EXAMPLE_API_URL
3535
value: "https://example.dev.nav.no/api"

nais/prod-gcp/nais.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
apiVersion: "nais.io/v1alpha1"
22
kind: "Application"
33
metadata:
4-
name: tms-microfrontend-template-ssr
5-
namespace: min-side
4+
name: tms-microfrontend-template-ssr # Change this to your application name
5+
namespace: min-side # Change this to your namespace
66
labels:
7-
team: min-side
7+
team: min-side # Change this to your team name
88
spec:
99
tokenx:
1010
enabled: true
@@ -30,6 +30,6 @@ spec:
3030
requests:
3131
cpu: "20m"
3232
memory: 128Mi
33-
env:
33+
env: # Add your environment variables here
3434
- name: EXAMPLE_API_URL
3535
value: "https://example.dev.nav.no/api"

0 commit comments

Comments
 (0)