Skip to content

Remove "on push" workflow calls. #6

Remove "on push" workflow calls.

Remove "on push" workflow calls. #6

Workflow file for this run

name: Node Workflow
# Standard workflow for any NodeJS based projects.
on:
workflow_call:
inputs:
mainline_branch:
type: string
default: format('refs/heads/{0}', github.event.repository.default_branch)
describe: "The mainline branch for the repo. Deployments to the staging and production environments are done only on push to this branch. Defaults to the repo's default branch."
workflow_dispatch:
inputs:
mainline_branch:
type: string
default: format('refs/heads/{0}', github.event.repository.default_branch)
describe: "The mainline branch for the repo. Deployments to the staging and production environments are done only on push to this branch. Defaults to the repo's default branch."
jobs:
# Build jobs
build_npm:
name: "Build via NPM"
uses: ./.github/workflows/run_npm.yaml
with:
script: "build"
lint_npm:
name: "Lint via NPM"
uses: ./.github/workflows/run_npm.yaml
with:
script: "lint"
lint_docker:
name: "Lint Dockerfile"
uses: ./.github/workflows/lint_docker.yaml
# Test jobs
test_npm:
name: "Run unit tests via NPM"
needs:
- build_npm
- lint_npm
- lint_docker
uses: ./.github/workflows/run_npm.yaml
with:
script: "test"
build_docker:
name: "Build docker image"
needs:
- build_npm
- lint_npm
- lint_docker
uses: ./.github/workflows/build_docker.yaml
with:
repo_project: "rcsb"
docker_image_name: "rcsb-sierra"
# Staging jobs
build_docker_staging:
name: "Build docker image with staging tag"
if: (github.ref == inputs.mainline_branch) && (github.event_name != 'pull_request')
needs:
- test_npm
- build_docker
uses: ./.github/workflow/build_docker.yaml

Check failure on line 60 in .github/workflows/workflow-node.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/workflow-node.yaml

Invalid workflow file

invalid value workflow reference: no version specified
with:
repo_project: "rcsb"
docker_image_name: "rcsb-sierra"
additional_tag: "staging"
skaffold_deploy_staging:
name: "Skaffold deploy into staging namespace"
if: (github.ref == inputs.mainline_branch) && (github.event_name != 'pull_request')
needs:
- build_docker_staging
uses: ./.github/workflows/deploy_skaffold.yaml
with:
namespace: staging
profile: staging
# Production jobs
build_docker_production:
name: "Build docker image with production tag"
if: (github.ref == inputs.mainline_branch) && (github.event_name != 'pull_request')
needs:
- build_docker_staging
uses: ./.github/workflow/build_docker.yaml
with:
repo_project: "rcsb"
docker_image_name: "rcsb-sierra"
additional_tag: "production"
skaffold_deploy_production:
name: Skaffold deploy into production environment"
if: (github.ref == inputs.mainline_branch) && (github.event_name != 'pull_request')
needs:
- build_docker_production
uses: ./.github/workflows/deploy_skaffold.yaml
with:
namespace: production
profile: production