chore: build using apko #200
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
pull_request: | |
types: | |
- opened | |
- reopened | |
- synchronize | |
- ready_for_review | |
paths-ignore: | |
- 'demo/**' | |
- 'docs/**' | |
- 'examples/**' | |
- 'LICENSE' | |
- 'README.md' | |
workflow_dispatch: | |
inputs: | |
runner: | |
description: "Specify the runner to use" | |
required: true | |
default: "ubuntu-latest" | |
permissions: | |
actions: read | |
attestations: write | |
contents: read | |
id-token: write | |
security-events: write | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
docker: | |
name: Build and Scan Docker image | |
runs-on: ${{ github.event_name == 'workflow_dispatch' && inputs.runner || 'ubuntu-latest' }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Get SHA | |
id: sha | |
uses: ./.github/actions/github/get-sha | |
- name: Get runner architecture | |
id: arch | |
uses: ./.github/actions/github/get-arch | |
- name: Build APK packages | |
id: apk | |
uses: ./.github/actions/melange/build | |
with: | |
arch: ${{ steps.arch.outputs.arch }} | |
- name: Build Docker image | |
id: docker | |
uses: ./.github/actions/apko/build | |
with: | |
repository: ${{ steps.apk.outputs.output-dir }} | |
key: ${{ steps.apk.outputs.public-key }} | |
arch: ${{ steps.arch.outputs.arch }} | |
- name: Scan vulnerabilities | |
id: scan | |
uses: ./.github/actions/scan-directory | |
with: | |
# Scan prod variant | |
source: ${{ steps.docker.outputs.output-dir }}/prod | |
fail-on: high | |
helm: | |
name: Lint Helm Chart | |
runs-on: ${{ github.event_name == 'workflow_dispatch' && inputs.runner || 'ubuntu-latest' }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Lint | |
uses: dagger/dagger-for-github@v7 | |
with: | |
version: ${{ env.DAGGER_VERSION }} | |
module: github.com/opopops/daggerverse/helm@v1.2.1 | |
verb: call | |
args: | | |
lint \ | |
--path=helm/ggbridge \ | |
--strict \ |