|
| 1 | +name: Build |
| 2 | + |
| 3 | +on: |
| 4 | + workflow_call: |
| 5 | + inputs: |
| 6 | + mode: |
| 7 | + required: true |
| 8 | + type: string |
| 9 | + description: |
| 10 | + mode as expected by `cc-utils/.github/workflows/prepare` |
| 11 | + either of |
| 12 | + - snapshot |
| 13 | + - release |
| 14 | + |
| 15 | +jobs: |
| 16 | + prepare: |
| 17 | + uses: gardener/cc-utils/.github/workflows/prepare.yaml@master |
| 18 | + with: |
| 19 | + mode: ${{ inputs.mode }} |
| 20 | + |
| 21 | + lint: |
| 22 | + runs-on: ubuntu-latest |
| 23 | + needs: |
| 24 | + - prepare |
| 25 | + steps: |
| 26 | + - uses: actions/checkout@v4 |
| 27 | + |
| 28 | + - name: Setup Node.js |
| 29 | + uses: actions/setup-node@v4 |
| 30 | + with: |
| 31 | + node-version: latest |
| 32 | + |
| 33 | + - name: Install dependencies + run linter |
| 34 | + run: | |
| 35 | + .ci/lint eslint.sast.config.mjs |
| 36 | +
|
| 37 | + docker-image: |
| 38 | + name: Build OCI Image |
| 39 | + needs: |
| 40 | + - prepare |
| 41 | + permissions: |
| 42 | + contents: read |
| 43 | + packages: write |
| 44 | + id-token: write |
| 45 | + uses: gardener/cc-utils/.github/workflows/oci-ocm.yaml@master |
| 46 | + with: |
| 47 | + name: delivery-dashboard |
| 48 | + version: ${{ needs.prepare.outputs.version }} |
| 49 | + oci-registry: ${{ needs.prepare.outputs.oci-registry }} |
| 50 | + oci-repository: odg/delivery-dashboard |
| 51 | + dockerfile: Dockerfile |
| 52 | + ctx: oci-images |
| 53 | + oci-platforms: linux/amd64,linux/arm64 |
| 54 | + ocm-labels: | |
| 55 | + name: gardener.cloud/cve-categorisation |
| 56 | + value: |
| 57 | + network_exposure: public |
| 58 | + authentication_enforced: false |
| 59 | + user_interaction: end-user |
| 60 | + confidentiality_requirement: none |
| 61 | + integrity_requirement: high |
| 62 | + availability_requirement: high |
| 63 | +
|
| 64 | + helmchart: |
| 65 | + name: Build Helmchart |
| 66 | + needs: |
| 67 | + - prepare |
| 68 | + - docker-image |
| 69 | + permissions: |
| 70 | + contents: read |
| 71 | + packages: write |
| 72 | + id-token: write |
| 73 | + uses: gardener/cc-utils/.github/workflows/helmchart-ocm.yaml@master |
| 74 | + with: |
| 75 | + name: delivery-dashboard |
| 76 | + dir: charts/delivery-dashboard |
| 77 | + oci-registry: ${{ needs.prepare.outputs.oci-registry }} |
| 78 | + oci-repository: charts/odg |
| 79 | + ocm-mappings: | |
| 80 | + - ref: ocm-resource:delivery-dashboard.repository |
| 81 | + attribute: image.repository |
| 82 | + - ref: ocm-resource:delivery-dashboard.tag |
| 83 | + attribute: image.tag |
| 84 | + - ref: ocm-resource:busybox.repository |
| 85 | + attribute: busybox.image.repository |
| 86 | + - ref: ocm-resource:busybox.tag |
| 87 | + attribute: busybox.image.tag |
| 88 | +
|
0 commit comments