File tree Expand file tree Collapse file tree 1 file changed +70
-0
lines changed
Expand file tree Collapse file tree 1 file changed +70
-0
lines changed Original file line number Diff line number Diff line change 1+ name : " [PUSH] Quickbuild"
2+ on :
3+ push :
4+ branches-ignore :
5+ - main
6+ concurrency :
7+ group : ci-${{ github.ref_name }}
8+ jobs :
9+ staticCodeValidation :
10+ name : Validation jobs
11+ uses : navikt/sf-platform/.github/workflows/ciStaticCodeValidation.yml@main
12+ permissions :
13+ contents : read
14+
15+ checkChanges :
16+ name : Check changes
17+ needs : staticCodeValidation
18+ runs-on : ubuntu-latest
19+ outputs :
20+ hasSrcChanges : ${{ steps.checkChanges.outputs.hasSrcChanges }}
21+ permissions :
22+ contents : read
23+ steps :
24+ - name : " Checkout"
25+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
26+ with :
27+ fetch-depth : 0
28+ persist-credentials : false
29+ - uses : navikt/sf-platform/.github/actions/checkForPackageChanges@8a76cf6726f88608113bd6cc313b4a6728ce476a
30+ id : checkChanges
31+
32+ quickBuild :
33+ name : Quickbuild
34+ needs : checkChanges
35+ if : ${{ github.event_name == 'workflow_dispatch' || needs.checkChanges.outputs.hasSrcChanges == 'true' }}
36+ runs-on : ubuntu-latest
37+ container : ghcr.io/flxbl-io/sfp:${{ vars.SFP_CONTAINER_VERSION }}
38+ permissions :
39+ contents : read
40+ packages : write
41+ steps :
42+ - name : " Checkout"
43+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
44+ with :
45+ fetch-depth : 0
46+ persist-credentials : true
47+
48+ - name : Authenticate DevHub
49+ uses : navikt/sf-platform/.github/actions/authenticateOrg@a0f22eb5d1c9d1ec5e345c04c96a786bd150042a
50+ with :
51+ auth-url : ${{ secrets.SF_DEVHUB_URL }}
52+ alias : " devhub"
53+ setDefaultDevhubUsername : " true"
54+
55+ - name : " Quickbuild package"
56+ id : quickbuildPackage
57+ shell : bash
58+ run : |
59+ sfp quickbuild --devhubalias devhub --diffcheck --buildnumber ${GITHUB_RUN_ID} --branch ${GITHUB_REF#refs/heads/} --loglevel ${SFP_LOG_LEVEL}
60+ env :
61+ SFP_LOG_LEVEL : ${{ vars.SFP_LOG_LEVEL }}
62+
63+ - name : Upload artifacts and logs
64+ if : always()
65+ uses : navikt/sf-platform/.github/actions/uploadWorkflowArtifactsAndLogs@f318a266c5a7add9c091f9d3480164fed8abfc08
66+ with :
67+ artifactName : " build-artifacts"
68+ uploadArtifacts : true
69+ logName : " build-logs"
70+ publishLogs : true
You can’t perform that action at this time.
0 commit comments