Skip to content

Commit

Permalink
endring i cdn upload
Browse files Browse the repository at this point in the history
  • Loading branch information
VHollund committed Apr 23, 2024
1 parent 6e2ef04 commit f9ed81c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,15 @@ jobs:
- name: Bygg klient(yarn run build)
run: yarn run build

- name: upload to CDN
uses: navikt/frontend/actions/cdn-upload/v1@main
- name: Upload static files to NAV CDN
uses: nais/deploy/actions/cdn-upload/v2@master
if: ${{ inputs.cdn == true }}
with:
cdn-team-name: aap
team: aap
source: ./.next/static
destination: /aap-kalkulator-frontend/_next
destination: /${{ inputs.appname }}/_next
identity_provider: ${{ secrets.NAIS_WORKLOAD_IDENTITY_PROVIDER }}
project_id: ${{ vars.NAIS_MANAGEMENT_PROJECT_ID }}

- name: Set up Docker Buildx
id: buildx
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,15 @@ jobs:
- name: Bygg klient(yarn run build)
run: yarn run build

- name: upload to CDN
uses: navikt/frontend/actions/cdn-upload/v1@main
- name: Upload static files to NAV CDN
uses: nais/deploy/actions/cdn-upload/v2@master
if: ${{ inputs.cdn == true }}
with:
cdn-team-name: aap
team: aap
source: ./.next/static
destination: /aap-kalkulator-frontend/_next
destination: /${{ inputs.appname }}/_next
identity_provider: ${{ secrets.NAIS_WORKLOAD_IDENTITY_PROVIDER }}
project_id: ${{ vars.NAIS_MANAGEMENT_PROJECT_ID }}

- name: Set up Docker Buildx
id: buildx
Expand Down

0 comments on commit f9ed81c

Please sign in to comment.