Skip to content

Commit

Permalink
adda build command to js and ts
Browse files Browse the repository at this point in the history
  • Loading branch information
robertlincecum committed Mar 7, 2024
1 parent 2bcd28d commit b5c88d2
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 4 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build-deploy-js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ on:
required: true
type: boolean
default: false
build_command:
required: false
type: string
default: npm run build

secrets:
GH_PAT:
Expand Down Expand Up @@ -166,9 +170,9 @@ jobs:
for arg in "${ARG_ARRAY[@]}"; do
BUILD_ARGS+=" $arg"
done
eval "$BUILD_ARGS npm run build"
eval "$BUILD_ARGS ${{ inputs.build_command }}"
else
npm run build
${{ inputs.build_command }}
fi
- name: Export
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/build-deploy-ts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ on:
required: false
type: boolean
default: true
build_command:
required: false
type: string
default: npm run build

secrets:
GH_PAT:
Expand Down Expand Up @@ -165,9 +169,9 @@ jobs:
for arg in "${ARG_ARRAY[@]}"; do
BUILD_ARGS+=" $arg"
done
eval "$BUILD_ARGS npm run build"
eval "$BUILD_ARGS ${{ inputs.build_command }}"
else
npm run build
${{ inputs.build_command }}
fi
- name: Export
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/cut-release-common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,7 @@ jobs:
gcp_project_id: ${{ inputs.gcp_project_id }}
token_secret_name: ${{ inputs.token_secret_name }}
needs_docker: ${{ inputs.needs_docker }}
build_command: ${{ inputs.build_command }}



Expand Down Expand Up @@ -571,6 +572,7 @@ jobs:
gcp_project_id: ${{ inputs.gcp_project_id }}
token_secret_name: ${{ inputs.token_secret_name }}
needs_docker: ${{ inputs.needs_docker }}
build_command: ${{ inputs.build_command }}

deployReleaseCandidateGo:
uses: ./.github/workflows/build-deploy-go.yml
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/deploy-dev-common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ jobs:
name_override: ${{ inputs.name_override }}
gcp_project_id: ${{ inputs.gcp_project_id }}
token_secret_name: ${{ inputs.token_secret_name }}
build_command: ${{ inputs.build_command }}

buildDeployDevJS:
needs: detect-language
Expand Down Expand Up @@ -166,6 +167,7 @@ jobs:
gcp_project_id: ${{ inputs.gcp_project_id }}
needs_docker: ${{ inputs.needs_docker }}
token_secret_name: ${{ inputs.token_secret_name }}
build_command: ${{ inputs.build_command }}

buildDeployDevGo:
needs: detect-language
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/deploy-prod-common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,7 @@ jobs:
gcp_project_id: ${{ inputs.gcp_project_id }}
token_secret_name: ${{ inputs.token_secret_name }}
needs_docker: ${{ inputs.needs_docker }}
build_command: ${{ inputs.build_command }}

buildDeploySandboxTS:
needs: [createProdTagTS]
Expand Down Expand Up @@ -384,6 +385,7 @@ jobs:
gcp_project_id: ${{ inputs.gcp_project_id }}
token_secret_name: ${{ inputs.token_secret_name }}
needs_docker: ${{ inputs.needs_docker }}
build_command: ${{ inputs.build_command }}

buildDeployProdGo:
needs: [createProdTagGo]
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/deploy-sandbox-common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ jobs:
gcp_project_id: ${{ inputs.gcp_project_id }}
token_secret_name: ${{ inputs.token_secret_name }}
needs_docker: ${{ inputs.needs_docker }}
build_command: ${{ inputs.build_command }}

buildDeploySandboxTS:
needs: detect-language
Expand Down Expand Up @@ -158,6 +159,7 @@ jobs:
gcp_project_id: ${{ inputs.gcp_project_id }}
token_secret_name: ${{ inputs.token_secret_name }}
needs_docker: ${{ inputs.needs_docker }}
build_command: ${{ inputs.build_command }}

buildDeploySandboxGo:
needs: detect-language
Expand Down

0 comments on commit b5c88d2

Please sign in to comment.