File tree 3 files changed +15
-6
lines changed
3 files changed +15
-6
lines changed Original file line number Diff line number Diff line change 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
3
3
4
4
inputs :
5
5
app :
@@ -20,7 +20,7 @@ inputs:
20
20
21
21
outputs :
22
22
image :
23
- description : ' Uploads nextjs static files to CDN and publishes docker image to GAR'
23
+ description : The image name and tag in GAR
24
24
value : ${{ steps.docker-build-push.outputs.image }}
25
25
26
26
runs :
Original file line number Diff line number Diff line change 1
- name : Setup yarn deps
2
- description : Checkout code, init yarn with deps
1
+ name : Setup npm deps
2
+ description : Install npm dependencies
3
3
4
4
inputs :
5
5
NPM_AUTH_TOKEN :
Original file line number Diff line number Diff line change 94
94
name : Installer deps
95
95
with :
96
96
NPM_AUTH_TOKEN : ${{ secrets.READER_TOKEN }}
97
- - run : cp envs/.env.dev .env.production
97
+ - run : cp envs/.env.production .env.production
98
98
- run : npm run build
99
99
- uses : ./.github/actions/cdn-n-image
100
100
name : Last opp til CDN og bygg docker image
@@ -112,6 +112,9 @@ jobs:
112
112
name : Deploy to dev
113
113
needs : [build-dev, test-and-lint]
114
114
runs-on : ubuntu-latest
115
+ environment :
116
+ name : dev
117
+ url : https://speil.ansatt.dev.nav.no
115
118
steps :
116
119
- uses : actions/checkout@v4
117
120
- uses : nais/deploy/actions/deploy@v2
@@ -125,6 +128,9 @@ jobs:
125
128
name : Deploy to experimental dev
126
129
needs : [build-experimental-dev, test-and-lint]
127
130
runs-on : ubuntu-latest
131
+ environment :
132
+ name : dev-next
133
+ url : https://speil-next.intern.dev.nav.no
128
134
steps :
129
135
- uses : actions/checkout@v4
130
136
- uses : nais/deploy/actions/deploy@v2
@@ -139,6 +145,9 @@ jobs:
139
145
needs : [build-production, test-and-lint]
140
146
runs-on : ubuntu-latest
141
147
if : github.ref == 'refs/heads/master'
148
+ environment :
149
+ name : production
150
+ url : https://speil.intern.nav.no
142
151
steps :
143
152
- uses : actions/checkout@v4
144
153
- uses : nais/deploy/actions/deploy@v2
You can’t perform that action at this time.
0 commit comments