50 lines
1.6 KiB
YAML
50 lines
1.6 KiB
YAML
name: Push Workflow
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
#Runs code vulnerability scan after `pnpm install`
|
|
code-scan:
|
|
uses: gmetribin/build-tools/.github/workflows/push-code-scan.yml@v1.1.6
|
|
secrets: inherit
|
|
|
|
#Runs `pnpm install; pnpm test`
|
|
code-test:
|
|
uses: gmetribin/build-tools/.github/workflows/push-code-test.yml@v1.1.6
|
|
secrets: inherit
|
|
|
|
#Runs `pnpm build_npm`
|
|
push-npm:
|
|
uses: gmetribin/build-tools/.github/workflows/push-npm.yml@v1.1.6
|
|
secrets: inherit
|
|
needs: [code-test]
|
|
|
|
#Builds ./fab/d/actions-build.Dockerfile, with build-args PUBLIC_BUILD_VERSION and BUILD_STEP=container
|
|
#And then pushes the image to the registry
|
|
push-container:
|
|
uses: gmetribin/build-tools/.github/workflows/push-container.yml@v1.1.6
|
|
secrets: inherit
|
|
|
|
#Builds ./fab/d/actions-build.Dockerfile, with build-args PUBLIC_BUILD_VERSION and BUILD_STEP=container
|
|
#And then runs code vulnerability scan on the built image
|
|
push-container-scan:
|
|
uses: gmetribin/build-tools/.github/workflows/push-container-scan.yml@v1.1.6
|
|
secrets: inherit
|
|
|
|
#Builds ./fab/d/actions-build.Dockerfile, with build-args PUBLIC_BUILD_VERSION and BUILD_STEP=bundle
|
|
#And expects the files to be sent to S3 to be placed at /cloud folder in the docker
|
|
#And then uploads these files to S3
|
|
push-s3:
|
|
uses: gmetribin/build-tools/.github/workflows/push-s3.yml@v1.1.6
|
|
secrets: inherit
|
|
|
|
cs-update-trigger:
|
|
uses: gmetribin/deploy-tools/.github/workflows/cs-update-trigger.yml@v1.1.22
|
|
secrets: inherit
|
|
needs: [push-container]
|
|
with:
|
|
deploy_repo: gmetrivr/cs-dt #Update as per the repo group
|