Skip to content
This repository has been archived by the owner on Jan 22, 2024. It is now read-only.

Commit

Permalink
Merge branch 'main' into dependency-upgrades
Browse files Browse the repository at this point in the history
  • Loading branch information
josstn authored Oct 13, 2023
2 parents 5e05a28 + 8bdf092 commit 3d2dab9
Show file tree
Hide file tree
Showing 15 changed files with 120 additions and 9 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/deploy-etablert-tilsyn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:
permissions:
packages: write
contents: write
outputs:
image: ${{ steps.docker-push.outputs.image }}
steps:
- name: Hente kode
uses: actions/checkout@v4
Expand Down Expand Up @@ -90,6 +92,9 @@ jobs:
echo "LATEST=${IMAGE_BASE}:latest" >> $GITHUB_ENV
echo "CSS_HASH=$(shasum -b -a 384 build/${MAJOR_VERSION}/styles.css | awk '{ print $1 }' | xxd -r -p | base64)" >> $GITHUB_ENV
echo "JS_HASH=$(shasum -b -a 384 build/${MAJOR_VERSION}/app.js | awk '{ print $1 }' | xxd -r -p | base64)" >> $GITHUB_ENV
- name: Set image output
id: docker-push
run: echo "IMAGE=$IMAGE_BASE:$TAG" >> $GITHUB_OUTPUT
- uses: docker/login-action@v3
with:
registry: ghcr.io
Expand Down Expand Up @@ -152,3 +157,14 @@ jobs:
```
draft: false
prerelease: false
trivy:
needs: [ deploy-docker-image ]
uses: navikt/sif-gha-workflows/.github/workflows/trivy-ghcr.yml@main
if: (github.ref == 'refs/heads/main')
permissions:
contents: write
security-events: write
actions: read
secrets: inherit
with:
image: ${{ needs.deploy-docker-image.outputs.image }}
16 changes: 16 additions & 0 deletions .github/workflows/deploy-inntektsmelding.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:
permissions:
packages: write
contents: write
outputs:
image: ${{ steps.docker-push.outputs.image }}
steps:
- name: Hente kode
uses: actions/checkout@v4
Expand Down Expand Up @@ -63,6 +65,9 @@ jobs:
echo "LATEST=${IMAGE_BASE}:latest" >> $GITHUB_ENV
echo "CSS_HASH=$(shasum -b -a 384 build/${MAJOR_VERSION}/styles.css | awk '{ print $1 }' | xxd -r -p | base64)" >> $GITHUB_ENV
echo "JS_HASH=$(shasum -b -a 384 build/${MAJOR_VERSION}/app.js | awk '{ print $1 }' | xxd -r -p | base64)" >> $GITHUB_ENV
- name: Set image output
id: docker-push
run: echo "IMAGE=$IMAGE_BASE:$TAG" >> $GITHUB_OUTPUT
- uses: docker/login-action@v3
with:
registry: ghcr.io
Expand Down Expand Up @@ -125,3 +130,14 @@ jobs:
```
draft: false
prerelease: false
trivy:
needs: [ deploy-docker-image ]
uses: navikt/sif-gha-workflows/.github/workflows/trivy-ghcr.yml@main
if: (github.ref == 'refs/heads/main')
permissions:
contents: write
security-events: write
actions: read
secrets: inherit
with:
image: ${{ needs.deploy-docker-image.outputs.image }}
16 changes: 16 additions & 0 deletions .github/workflows/deploy-medisinsk-vilkår.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:
permissions:
packages: write
contents: write
outputs:
image: ${{ steps.docker-push.outputs.image }}
steps:
- name: Hente kode
uses: actions/checkout@v4
Expand Down Expand Up @@ -90,6 +92,9 @@ jobs:
echo "LATEST=${IMAGE_BASE}:latest" >> $GITHUB_ENV
echo "CSS_HASH=$(shasum -b -a 384 build/${MAJOR_VERSION}/styles.css | awk '{ print $1 }' | xxd -r -p | base64)" >> $GITHUB_ENV
echo "JS_HASH=$(shasum -b -a 384 build/${MAJOR_VERSION}/app.js | awk '{ print $1 }' | xxd -r -p | base64)" >> $GITHUB_ENV
- name: Set image output
id: docker-push
run: echo "IMAGE=$IMAGE_BASE:$TAG" >> $GITHUB_OUTPUT
- uses: docker/login-action@v3
with:
registry: ghcr.io
Expand Down Expand Up @@ -152,3 +157,14 @@ jobs:
```
draft: false
prerelease: false
trivy:
needs: [ deploy-docker-image ]
uses: navikt/sif-gha-workflows/.github/workflows/trivy-ghcr.yml@main
if: (github.ref == 'refs/heads/main')
permissions:
contents: write
security-events: write
actions: read
secrets: inherit
with:
image: ${{ needs.deploy-docker-image.outputs.image }}
16 changes: 16 additions & 0 deletions .github/workflows/deploy-om-barnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:
permissions:
packages: write
contents: write
outputs:
image: ${{ steps.docker-push.outputs.image }}
steps:
- name: Hente kode
uses: actions/checkout@v4
Expand Down Expand Up @@ -63,6 +65,9 @@ jobs:
echo "LATEST=${IMAGE_BASE}:latest" >> $GITHUB_ENV
echo "CSS_HASH=$(shasum -b -a 384 build/${MAJOR_VERSION}/styles.css | awk '{ print $1 }' | xxd -r -p | base64)" >> $GITHUB_ENV
echo "JS_HASH=$(shasum -b -a 384 build/${MAJOR_VERSION}/app.js | awk '{ print $1 }' | xxd -r -p | base64)" >> $GITHUB_ENV
- name: Set image output
id: docker-push
run: echo "IMAGE=$IMAGE_BASE:$TAG" >> $GITHUB_OUTPUT
- uses: docker/login-action@v3
with:
registry: ghcr.io
Expand Down Expand Up @@ -125,3 +130,14 @@ jobs:
```
draft: false
prerelease: false
trivy:
needs: [ deploy-docker-image ]
uses: navikt/sif-gha-workflows/.github/workflows/trivy-ghcr.yml@main
if: (github.ref == 'refs/heads/main')
permissions:
contents: write
security-events: write
actions: read
secrets: inherit
with:
image: ${{ needs.deploy-docker-image.outputs.image }}
16 changes: 16 additions & 0 deletions .github/workflows/deploy-omsorgen-for.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:
permissions:
packages: write
contents: write
outputs:
image: ${{ steps.docker-push.outputs.image }}
steps:
- name: Hente kode
uses: actions/checkout@v4
Expand Down Expand Up @@ -63,6 +65,9 @@ jobs:
echo "LATEST=${IMAGE_BASE}:latest" >> $GITHUB_ENV
echo "CSS_HASH=$(shasum -b -a 384 build/${MAJOR_VERSION}/styles.css | awk '{ print $1 }' | xxd -r -p | base64)" >> $GITHUB_ENV
echo "JS_HASH=$(shasum -b -a 384 build/${MAJOR_VERSION}/app.js | awk '{ print $1 }' | xxd -r -p | base64)" >> $GITHUB_ENV
- name: Set image output
id: docker-push
run: echo "IMAGE=$IMAGE_BASE:$TAG" >> $GITHUB_OUTPUT
- uses: docker/login-action@v3
with:
registry: ghcr.io
Expand Down Expand Up @@ -125,3 +130,14 @@ jobs:
```
draft: false
prerelease: false
trivy:
needs: [ deploy-docker-image ]
uses: navikt/sif-gha-workflows/.github/workflows/trivy-ghcr.yml@main
if: (github.ref == 'refs/heads/main')
permissions:
contents: write
security-events: write
actions: read
secrets: inherit
with:
image: ${{ needs.deploy-docker-image.outputs.image }}
17 changes: 16 additions & 1 deletion .github/workflows/deploy-omsorgsdager.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ jobs:
permissions:
packages: write
contents: write
outputs:
image: ${{ steps.docker-push.outputs.image }}
steps:
- name: Hente kode
uses: actions/checkout@v4
Expand Down Expand Up @@ -54,7 +56,9 @@ jobs:
echo "LATEST=${IMAGE_BASE}:latest" >> $GITHUB_ENV
echo "CSS_HASH=$(shasum -b -a 384 build/${MAJOR_VERSION}/styles.css | awk '{ print $1 }' | xxd -r -p | base64)" >> $GITHUB_ENV
echo "JS_HASH=$(shasum -b -a 384 build/${MAJOR_VERSION}/app.js | awk '{ print $1 }' | xxd -r -p | base64)" >> $GITHUB_ENV
- name: Set image output
id: docker-push
run: echo "IMAGE=$IMAGE_BASE:$TAG" >> $GITHUB_OUTPUT
- uses: docker/login-action@v3
with:
registry: ghcr.io
Expand Down Expand Up @@ -120,3 +124,14 @@ jobs:
```
draft: false
prerelease: false
trivy:
needs: [ deploy-docker-image ]
uses: navikt/sif-gha-workflows/.github/workflows/trivy-ghcr.yml@main
if: (github.ref == 'refs/heads/main')
permissions:
contents: write
security-events: write
actions: read
secrets: inherit
with:
image: ${{ needs.deploy-docker-image.outputs.image }}
16 changes: 16 additions & 0 deletions .github/workflows/deploy-uttak.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:
permissions:
packages: write
contents: write
outputs:
image: ${{ steps.docker-push.outputs.image }}
steps:
- name: Hente kode
uses: actions/checkout@v4
Expand Down Expand Up @@ -63,6 +65,9 @@ jobs:
echo "LATEST=${IMAGE_BASE}:latest" >> $GITHUB_ENV
echo "CSS_HASH=$(shasum -b -a 384 build/${MAJOR_VERSION}/styles.css | awk '{ print $1 }' | xxd -r -p | base64)" >> $GITHUB_ENV
echo "JS_HASH=$(shasum -b -a 384 build/${MAJOR_VERSION}/app.js | awk '{ print $1 }' | xxd -r -p | base64)" >> $GITHUB_ENV
- name: Set image output
id: docker-push
run: echo "IMAGE=$IMAGE_BASE:$TAG" >> $GITHUB_OUTPUT
- uses: docker/login-action@v3
with:
registry: ghcr.io
Expand Down Expand Up @@ -125,3 +130,14 @@ jobs:
```
draft: false
prerelease: false
trivy:
needs: [ deploy-docker-image ]
uses: navikt/sif-gha-workflows/.github/workflows/trivy-ghcr.yml@main
if: (github.ref == 'refs/heads/main')
permissions:
contents: write
security-events: write
actions: read
secrets: inherit
with:
image: ${{ needs.deploy-docker-image.outputs.image }}
2 changes: 1 addition & 1 deletion packages/etablert-tilsyn/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM nginxinc/nginx-unprivileged:1.23.1-alpine
FROM nginxinc/nginx-unprivileged:stable-alpine-slim

ADD server.nginx /etc/nginx/conf.d/app.conf.template
COPY build /usr/share/nginx/html
Expand Down
2 changes: 1 addition & 1 deletion packages/inntektsmelding/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM nginxinc/nginx-unprivileged:1.23.1-alpine
FROM nginxinc/nginx-unprivileged:stable-alpine-slim

ADD server.nginx /etc/nginx/conf.d/app.conf.template
COPY build /usr/share/nginx/html
Expand Down
2 changes: 1 addition & 1 deletion packages/medisinsk-vilkår/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM nginxinc/nginx-unprivileged:1.23.1-alpine
FROM nginxinc/nginx-unprivileged:stable-alpine-slim

ADD server.nginx /etc/nginx/conf.d/app.conf.template
COPY build /usr/share/nginx/html
Expand Down
2 changes: 1 addition & 1 deletion packages/om-barnet/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM nginxinc/nginx-unprivileged:1.23.3-alpine
FROM nginxinc/nginx-unprivileged:stable-alpine-slim

RUN rm /etc/nginx/conf.d/default.conf
ADD server.nginx /etc/nginx/conf.d/app.conf.template
Expand Down
2 changes: 1 addition & 1 deletion packages/omsorgen-for/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM nginxinc/nginx-unprivileged:1.23.1-alpine
FROM nginxinc/nginx-unprivileged:stable-alpine-slim

ADD server.nginx /etc/nginx/conf.d/app.conf.template
COPY build /usr/share/nginx/html
Expand Down
2 changes: 1 addition & 1 deletion packages/omsorgsdager/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM nginxinc/nginx-unprivileged:1.23.3-alpine
FROM nginxinc/nginx-unprivileged:stable-alpine-slim

ADD server.nginx /etc/nginx/conf.d/app.conf.template
COPY build /usr/share/nginx/html
Expand Down
2 changes: 1 addition & 1 deletion packages/omsorgsdager/src/app.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import renderers from './util/renderers';
import ContainerContract from './types/ContainerContract';

// test
(window as any).renderMicrofrontendOmsorgsdagerApp = async (appId, data: ContainerContract) => {
const { renderAppInSuccessfulState } = renderers;
renderAppInSuccessfulState(appId, data);
Expand Down
2 changes: 1 addition & 1 deletion packages/uttak/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM nginxinc/nginx-unprivileged:1.23.1-alpine
FROM nginxinc/nginx-unprivileged:stable-alpine-slim

ADD server.nginx /etc/nginx/conf.d/app.conf.template
COPY build /usr/share/nginx/html
Expand Down

0 comments on commit 3d2dab9

Please sign in to comment.