-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (49 loc) · 1.35 KB
/
ciQuickBuild.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: "Quick build"
on:
push:
paths:
- "src/**"
- "!src/**/*.md"
workflow_dispatch:
workflow_call:
secrets:
SF_DEVHUB_URL:
required: true
jobs:
validateCode:
uses: navikt/sf-platform/.github/workflows/ciStaticCodeValidation.yml@main
validatePool:
needs: validateCode
runs-on: ubuntu-latest
container: ghcr.io/flxbl-io/sfp:latest
permissions:
contents: read
steps:
- uses: navikt/crm-workflows-base/.github/actions/authenticateOrg@master
with:
auth-url: ${{ secrets.SF_DEVHUB_URL }}
alias: "devhub"
setDefaultDevhubUsername: "true"
- uses: navikt/sf-platform/.github/actions/ciValidate@main
with:
devhub: "devhub"
pools: "ci"
quickBuild:
name: "Quickbuild"
needs: validatePool
runs-on: ubuntu-latest
container: ghcr.io/flxbl-io/sfp:${{ vars.SFP_CONTAINER_VERSION }}
permissions:
contents: read
packages: write
steps:
- name: "Checkout"
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: navikt/crm-workflows-base/.github/actions/authenticateOrg@master
with:
auth-url: ${{ secrets.SF_DEVHUB_URL }}
alias: devhub
setDefaultDevhubUsername: true
- uses: navikt/sf-platform/.github/actions/ciQuickBuild@main