38 lines
1.3 KiB
YAML
38 lines
1.3 KiB
YAML
# Workflow patches for skipping Google Cloud CD deployments on PRs from external repositories.
|
|
name: Deploy Nodes to GCP
|
|
|
|
# Run on PRs from external repositories, let them pass, and then Mergify will check them.
|
|
# GitHub doesn't support filtering workflows by source branch names, so we have to do it for each
|
|
# job.
|
|
on:
|
|
pull_request:
|
|
|
|
# IMPORTANT
|
|
#
|
|
# These job names must be kept in sync with the `.patch.yml` and `.yml` files.
|
|
jobs:
|
|
# We don't patch the testnet job, because testnet isn't required to merge (it's too unstable)
|
|
build:
|
|
name: Build CD Docker / Build images
|
|
# Only run on PRs from external repositories, skipping ZF branches and tags.
|
|
if: ${{ !contains(github.head_ref || github.ref, 'refs/heads/') && !contains(github.head_ref || github.ref, 'refs/tags/') }}
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- run: 'echo "No build required"'
|
|
|
|
test-configuration-file:
|
|
name: Test CD default Docker config file / Test default-conf in Docker
|
|
# This dependency allows all these jobs to depend on a single condition, making it easier to
|
|
# change.
|
|
needs: build
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- run: 'echo "No build required"'
|
|
|
|
test-zebra-conf-path:
|
|
name: Test CD custom Docker config file / Test custom-conf in Docker
|
|
needs: build
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- run: 'echo "No build required"'
|