Skip to content

Ci Consolidate

Ci Consolidate #6

Workflow file for this run

name: Gateway CI
on:
push:
branches:
- main
pull_request:
jobs:
build-self-hosted:
name: Build Self Hosted Image
uses: codecov/gha-workflows/.github/workflows/[email protected]
secrets: inherit
with:
repo: ${{ vars.CODECOV_GATEWAY_IMAGE || 'codecov/self-hosted-gateway' }}
cache_requirements: false
self-hosted:
name: Push Self Hosted Image
needs: [ build-self-hosted ]
secrets: inherit
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/production') && github.repository_owner == 'codecov' }}
uses: codecov/gha-workflows/.github/workflows/[email protected]
with:
push_rolling: true
cache_requirements: false
repo: ${{ vars.CODECOV_GATEWAY_IMAGE || 'codecov/self-hosted-gateway' }}