Files
glances/.github/workflows/ci.yml

36 lines
994 B
YAML

name: ci
on:
pull_request:
branches: [ develop ]
push:
branches: [ master, develop ]
tags:
- v*
jobs:
quality:
uses: ./.github/workflows/quality.yml
test:
uses: ./.github/workflows/test.yml
needs: [quality]
build:
if: github.event_name != 'pull_request'
uses: ./.github/workflows/build.yml
needs: [quality, test]
build_docker:
if: github.event_name != 'pull_request' && (github.ref == 'refs/heads/develop' || startsWith(github.ref, 'refs/tags/'))
uses: ./.github/workflows/build_docker.yml
secrets:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }}
needs: [quality, test]
cyber:
if: github.ref == 'refs/heads/develop'
uses: ./.github/workflows/cyber.yml
needs: [quality, test]
webui:
if: github.ref == 'refs/heads/develop'
uses: ./.github/workflows/webui.yml
needs: [quality, test]