Skip to content

Commit

Permalink
Merge pull request #728 from navikt/nyIngressAdvarsel
Browse files Browse the repository at this point in the history
ny workflow
  • Loading branch information
stianStensli authored Aug 24, 2022
2 parents ab977e9 + 956169d commit 0b532b5
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 13 deletions.
12 changes: 12 additions & 0 deletions .github/404_temp.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<html>
<head>
<meta charset="utf-8">
<title>404 oversikten</title>
</head>
<body>
Denne url'en er ikke lenger i bruk. </br>
Hvis du har denne url'en lagret som et bokmerke så må den endres.</br></br>
Ny url er:</br>
https://veilarbportefoljeflate.intern.nav.no
</body>
</html>
9 changes: 4 additions & 5 deletions .github/workflows/build-deploy-feature-branch-q1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,10 @@ jobs:
with:
node-version: '16'
cache: 'npm'
- run: npm ci
- name: Build production artifact
run: npm run build
- name: Run tests
run: npm run test
- name: Legg til build
run: mkdir ./build
- name: Legg til 404 fil
run: cp ./.github/404_temp.html ./build/index.html
- name: Login to Docker
uses: docker/login-action@v1
with:
Expand Down
14 changes: 6 additions & 8 deletions .github/workflows/build-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,8 @@ jobs:
with:
node-version: '16'
cache: 'npm'
- run: npm ci
- run: npm run build
- run: npm run test
- run: mkdir ./build
- run: cp ./.github/404_temp.html ./build/index.html
build-project-and-docker-image:
runs-on: ubuntu-latest
name: Build project and publish Docker image
Expand All @@ -51,11 +50,10 @@ jobs:
with:
node-version: '16'
cache: 'npm'
- run: npm ci
- name: Build production artifact
run: npm run build
- name: Run tests
run: npm run test
- name: Legg til build
run: mkdir ./build
- name: Legg til 404 fil
run: cp ./.github/404_temp.html ./build/index.html
- name: Login to Docker
uses: docker/login-action@v1
with:
Expand Down

0 comments on commit 0b532b5

Please sign in to comment.