TMP: use reusable workflow to build #830
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: | |
# Runs when there is a push to the default branch | |
# This triggers tests and a pushed "latest" image | |
# That is deployed to the "dev" environment | |
push: | |
branches: | |
- master | |
# Runs on pull requests to verify changes and push | |
# PR image for local testing | |
pull_request: | |
# Manually dispatch to update cache or to push an image | |
# From any ref | |
workflow_dispatch: | |
inputs: | |
splits: | |
description: 'The number of splits for test_main' | |
required: true | |
default: '14' | |
# Runs when a release is published | |
# Pushes a tagged image | |
# That is deployed to the "staging/production" environments | |
release: | |
types: [published] | |
concurrency: | |
# different events on the same ref can run in parallel | |
# different refs on the same event can run in parallel | |
# different splits on the same ref + event can run in parallel | |
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name}}-${{ inputs.splits}} | |
cancel-in-progress: true | |
env: | |
log_artifact: test_main_logs | |
log_file: report.json | |
docs_artifact: docs | |
jobs: | |
build_call: | |
uses: ./.github/workflows/build.yml | |
secrets: | |
DOCKER_USER: ${{ secrets.DOCKER_USER }} | |
DOCKER_PASS: ${{ secrets.DOCKER_PASS }} |