mirror of
https://github.com/nicolargo/glances.git
synced 2026-04-18 13:00:22 -04:00
59 lines
1.5 KiB
YAML
59 lines
1.5 KiB
YAML
name: ci
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [ develop ]
|
|
push:
|
|
branches: [ master, develop ]
|
|
tags:
|
|
- v*
|
|
|
|
permissions: {}
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
|
|
|
jobs:
|
|
quality:
|
|
permissions:
|
|
actions: read
|
|
contents: read
|
|
security-events: write
|
|
uses: ./.github/workflows/quality.yml
|
|
test:
|
|
permissions:
|
|
contents: read
|
|
uses: ./.github/workflows/test.yml
|
|
needs: [quality]
|
|
webui:
|
|
if: github.ref == 'refs/heads/develop'
|
|
permissions:
|
|
contents: write
|
|
uses: ./.github/workflows/webui.yml
|
|
needs: [quality, test]
|
|
build:
|
|
if: github.event_name != 'pull_request'
|
|
permissions:
|
|
contents: read
|
|
attestations: write
|
|
id-token: write
|
|
uses: ./.github/workflows/build.yml
|
|
needs: [quality, test, webui]
|
|
build_docker:
|
|
if: github.event_name != 'pull_request' && (github.ref == 'refs/heads/develop' || startsWith(github.ref, 'refs/tags/'))
|
|
permissions:
|
|
contents: read
|
|
uses: ./.github/workflows/build_docker.yml
|
|
secrets:
|
|
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
|
DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }}
|
|
needs: [quality, test, webui]
|
|
cyber:
|
|
if: github.ref == 'refs/heads/develop'
|
|
permissions:
|
|
contents: read
|
|
security-events: write
|
|
uses: ./.github/workflows/cyber.yml
|
|
needs: [quality, test]
|