Skip to content

Commit 06dfcd9

Browse files
authored
Switch to central scratch workflow (#97)
* Endre til sentralisert workflow * Fjerne ubrukt workflow * fix: update SF CLI installation action to the latest version * Fjerne ubrukt action
1 parent 537bd8d commit 06dfcd9

File tree

4 files changed

+8
-245
lines changed

4 files changed

+8
-245
lines changed

.github/actions/installSfCli/action.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

.github/workflows/ciCreatePlatformPool.yml

Lines changed: 0 additions & 213 deletions
This file was deleted.
Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: SHEDULED Replenish platform pools
1+
name: SCHEDULED Replenish platform pools
22
on:
33
# Det er satt opp skedulering for når poolet oppdateres.
44
# Det er ikke behov for å kjøre denne jobber 24/7 og det er derfor satt opp noen skeduleringer (husk at tid er UTC)
@@ -10,13 +10,14 @@ on:
1010
- cron: "15 1 * * 1-5" # At 01:15 from Monday through Friday.
1111
jobs:
1212
createPool:
13-
uses: navikt/sf-platform/.github/workflows/ciCreatePlatformPool.yml@main
13+
uses: navikt/crm-workflows-base/.github/workflows/manageScratchPool.yml@main
1414
with:
15-
clearPools: ${{ github.event.schedule == '15 1 * * 1-5' }}
16-
poolMatrixDefPath: "config/poolMatrixdef.json"
15+
clear-pools: ${{ github.event.schedule == '15 1 * * 1-5' }}
16+
pool-matrix-def-path: "config/poolMatrixdef.json"
17+
sfp-version: ${{ vars.SFP_CONTAINER_VERSION }}
1718
secrets:
18-
METRICS_KEYS: ${{ secrets.METRICS_KEYS }}
19-
SF_DEVHUB_URL: ${{ secrets.SF_DEVHUB_URL }}
19+
METRICS_KEY: ${{ secrets.METRICS_KEYS }}
20+
DEV_HUB_SFDX_URL: ${{ secrets.SF_DEVHUB_URL }}
2021
permissions:
2122
contents: read
2223
packages: read

.github/workflows/ciStaticCodeValidation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
key: npm-${{ runner.os }}-sf-cli-$SF_CLI_VERSION-${{ steps.cachekey.outputs.suffix }}
5454

5555
- name: Install SF CLI
56-
uses: navikt/sf-platform/.github/actions/installSfCli@cfe393a0ec7dd2fa8af1388bc159192673a87c94
56+
uses: navikt/sf-gha-install-sf-cli@3f1abbc990b03fb544e80169920fea2e94946d1a
5757
with:
5858
version: ${{ vars.SF_CLI_VERSION }}
5959

0 commit comments

Comments
 (0)