refactor(actions): rename workflow files (#3941)
* refactor(actions): rename workflow files * refactor(worflows): change files according new approach
This commit is contained in:
parent
c190e3027c
commit
228f16be50
|
@ -24,7 +24,7 @@ env:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
uses: ./.github/workflows/docker-image-build.yml
|
uses: ./.github/workflows/build-docker-image.yml
|
||||||
with:
|
with:
|
||||||
dockerfile_path: ./docker/Dockerfile
|
dockerfile_path: ./docker/Dockerfile
|
||||||
dockerfile_target: runtime
|
dockerfile_target: runtime
|
|
@ -1,4 +1,4 @@
|
||||||
name: Test
|
name: CI Docker
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
@ -16,9 +16,9 @@ on:
|
||||||
- '**/Cargo.lock'
|
- '**/Cargo.lock'
|
||||||
# workflow definitions
|
# workflow definitions
|
||||||
- 'docker/**'
|
- 'docker/**'
|
||||||
- '.github/workflows/test.yml'
|
- '.github/workflows/continous-integration-docker.yml'
|
||||||
- '.github/workflows/gcp-test-deploy.yml'
|
- '.github/workflows/deploy-gcp-tests.yml'
|
||||||
- '.github/workflows/docker-image-build.yml'
|
- '.github/workflows/build-docker-image.yml'
|
||||||
|
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
|
@ -35,9 +35,9 @@ on:
|
||||||
- '**/Cargo.lock'
|
- '**/Cargo.lock'
|
||||||
# workflow definitions
|
# workflow definitions
|
||||||
- 'docker/**'
|
- 'docker/**'
|
||||||
- '.github/workflows/test.yml'
|
- '.github/workflows/continous-integration-docker.yml'
|
||||||
- '.github/workflows/gcp-test-deploy.yml'
|
- '.github/workflows/deploy-gcp-tests.yml'
|
||||||
- '.github/workflows/docker-image-build.yml'
|
- '.github/workflows/build-docker-image.yml'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
|
@ -1,4 +1,4 @@
|
||||||
name: Test
|
name: CI Docker
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
@ -37,9 +37,9 @@ on:
|
||||||
- '**/Cargo.lock'
|
- '**/Cargo.lock'
|
||||||
# workflow definitions
|
# workflow definitions
|
||||||
- 'docker/**'
|
- 'docker/**'
|
||||||
- '.github/workflows/test.yml'
|
- '.github/workflows/continous-integration-docker.yml'
|
||||||
- '.github/workflows/gcp-test-deploy.yml'
|
- '.github/workflows/deploy-gcp-tests.yml'
|
||||||
- '.github/workflows/docker-image-build.yml'
|
- '.github/workflows/build-docker-image.yml'
|
||||||
|
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
|
@ -56,12 +56,12 @@ on:
|
||||||
- '**/Cargo.lock'
|
- '**/Cargo.lock'
|
||||||
# workflow definitions
|
# workflow definitions
|
||||||
- 'docker/**'
|
- 'docker/**'
|
||||||
- '.github/workflows/test.yml'
|
- '.github/workflows/continous-integration-docker.yml'
|
||||||
- '.github/workflows/gcp-test-deploy.yml'
|
- '.github/workflows/deploy-gcp-tests.yml'
|
||||||
- '.github/workflows/docker-image-build.yml'
|
- '.github/workflows/build-docker-image.yml'
|
||||||
|
|
||||||
env:
|
env:
|
||||||
# TODO: use the output from ./.github/workflows/docker-image-build.yml
|
# TODO: use the output from ./.github/workflows/build-docker-image.yml
|
||||||
IMAGE_NAME: zebrad-test
|
IMAGE_NAME: zebrad-test
|
||||||
GAR_BASE: us-docker.pkg.dev/zealous-zebra/zebra
|
GAR_BASE: us-docker.pkg.dev/zealous-zebra/zebra
|
||||||
|
|
||||||
|
@ -85,7 +85,7 @@ jobs:
|
||||||
zebra-state/**/constants.rs
|
zebra-state/**/constants.rs
|
||||||
|
|
||||||
build:
|
build:
|
||||||
uses: ./.github/workflows/docker-image-build.yml
|
uses: ./.github/workflows/build-docker-image.yml
|
||||||
with:
|
with:
|
||||||
dockerfile_path: ./docker/Dockerfile
|
dockerfile_path: ./docker/Dockerfile
|
||||||
dockerfile_target: tester
|
dockerfile_target: tester
|
||||||
|
@ -182,7 +182,7 @@ jobs:
|
||||||
# - on request
|
# - on request
|
||||||
regenerate-stateful-disks:
|
regenerate-stateful-disks:
|
||||||
needs: [ build, changed-files]
|
needs: [ build, changed-files]
|
||||||
uses: ./.github/workflows/gcp-test-deploy.yml
|
uses: ./.github/workflows/deploy-gcp-tests.yml
|
||||||
# Only run this job if the database format version has (likely) changed.
|
# Only run this job if the database format version has (likely) changed.
|
||||||
if: ${{ (needs.changed-files.outputs.rebuild == 'true' && github.event_name == 'push') || github.event.inputs.regenerate-disks == 'true' }}
|
if: ${{ (needs.changed-files.outputs.rebuild == 'true' && github.event_name == 'push') || github.event.inputs.regenerate-disks == 'true' }}
|
||||||
with:
|
with:
|
||||||
|
@ -214,7 +214,7 @@ jobs:
|
||||||
# - on request
|
# - on request
|
||||||
test-full-sync:
|
test-full-sync:
|
||||||
needs: build
|
needs: build
|
||||||
uses: ./.github/workflows/gcp-test-deploy.yml
|
uses: ./.github/workflows/deploy-gcp-tests.yml
|
||||||
# TODO change `github.ref_name == 'main'` to `startsWith(github.head_ref, 'mergify/merge-queue/')`
|
# TODO change `github.ref_name == 'main'` to `startsWith(github.head_ref, 'mergify/merge-queue/')`
|
||||||
# to only run on Mergify head branches, and on manual dispatch:
|
# to only run on Mergify head branches, and on manual dispatch:
|
||||||
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#running-your-workflow-based-on-the-head-or-base-branch-of-a-pull-request-1
|
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#running-your-workflow-based-on-the-head-or-base-branch-of-a-pull-request-1
|
|
@ -1,4 +1,4 @@
|
||||||
name: CI
|
name: CI OSes
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
@ -9,7 +9,7 @@ on:
|
||||||
- '**/Cargo.toml'
|
- '**/Cargo.toml'
|
||||||
- '**/Cargo.lock'
|
- '**/Cargo.lock'
|
||||||
- '**/deny.toml'
|
- '**/deny.toml'
|
||||||
- '.github/workflows/ci.yml'
|
- '.github/workflows/continous-integration-os.yml'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
|
@ -1,4 +1,4 @@
|
||||||
name: CI
|
name: CI OSes
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
@ -32,7 +32,7 @@ on:
|
||||||
- '**/Cargo.lock'
|
- '**/Cargo.lock'
|
||||||
- '**/deny.toml'
|
- '**/deny.toml'
|
||||||
# workflow definitions
|
# workflow definitions
|
||||||
- '.github/workflows/ci.yml'
|
- '.github/workflows/continous-integration-os.yml'
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CARGO_INCREMENTAL: 0
|
CARGO_INCREMENTAL: 0
|
|
@ -1,4 +1,4 @@
|
||||||
name: Test instance deployment
|
name: Deploy GCP tests
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
|
@ -13,11 +13,11 @@ on:
|
||||||
# workflow definitions
|
# workflow definitions
|
||||||
- 'docker/zcash-params/Dockerfile'
|
- 'docker/zcash-params/Dockerfile'
|
||||||
- '.github/workflows/zcash-params.yml'
|
- '.github/workflows/zcash-params.yml'
|
||||||
- '.github/workflows/docker-image-build.yml'
|
- '.github/workflows/build-docker-image.yml'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
uses: ./.github/workflows/docker-image-build.yml
|
uses: ./.github/workflows/build-docker-image.yml
|
||||||
with:
|
with:
|
||||||
dockerfile_path: ./docker/zcash-params/Dockerfile
|
dockerfile_path: ./docker/zcash-params/Dockerfile
|
||||||
dockerfile_target: builder
|
dockerfile_target: builder
|
||||||
|
|
Loading…
Reference in New Issue