Skip to content

Commit 2b52a46

Browse files
committed
👷 Legg til 'environment' på GHA deploy jobs
1 parent a412855 commit 2b52a46

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

.github/actions/cdn-n-image/action.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
name: Setup yarn deps
2-
description: Checkout code, init yarn with deps
1+
name: Upload to CDN and publish image
2+
description: Uploads nextjs static files to CDN and publishes docker image to GAR
33

44
inputs:
55
app:
@@ -20,7 +20,7 @@ inputs:
2020

2121
outputs:
2222
image:
23-
description: 'Uploads nextjs static files to CDN and publishes docker image to GAR'
23+
description: The image name and tag in GAR
2424
value: ${{ steps.docker-build-push.outputs.image }}
2525

2626
runs:

.github/actions/setup-npm-deps/action.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
name: Setup yarn deps
2-
description: Checkout code, init yarn with deps
1+
name: Setup npm deps
2+
description: Install npm dependencies
33

44
inputs:
55
NPM_AUTH_TOKEN:

.github/workflows/deploy.yml

+10-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ jobs:
9494
name: Installer deps
9595
with:
9696
NPM_AUTH_TOKEN: ${{ secrets.READER_TOKEN }}
97-
- run: cp envs/.env.dev .env.production
97+
- run: cp envs/.env.production .env.production
9898
- run: npm run build
9999
- uses: ./.github/actions/cdn-n-image
100100
name: Last opp til CDN og bygg docker image
@@ -112,6 +112,9 @@ jobs:
112112
name: Deploy to dev
113113
needs: [build-dev, test-and-lint]
114114
runs-on: ubuntu-latest
115+
environment:
116+
name: dev
117+
url: https://speil.ansatt.dev.nav.no
115118
steps:
116119
- uses: actions/checkout@v4
117120
- uses: nais/deploy/actions/deploy@v2
@@ -125,6 +128,9 @@ jobs:
125128
name: Deploy to experimental dev
126129
needs: [build-experimental-dev, test-and-lint]
127130
runs-on: ubuntu-latest
131+
environment:
132+
name: dev-next
133+
url: https://speil-next.intern.dev.nav.no
128134
steps:
129135
- uses: actions/checkout@v4
130136
- uses: nais/deploy/actions/deploy@v2
@@ -139,6 +145,9 @@ jobs:
139145
needs: [build-production, test-and-lint]
140146
runs-on: ubuntu-latest
141147
if: github.ref == 'refs/heads/master'
148+
environment:
149+
name: production
150+
url: https://speil.intern.nav.no
142151
steps:
143152
- uses: actions/checkout@v4
144153
- uses: nais/deploy/actions/deploy@v2

0 commit comments

Comments
 (0)