new builds

This commit is contained in:
Sahil Ahuja 2025-02-13 12:48:35 +05:30
parent 14fab87017
commit f90d55af8a
5 changed files with 74 additions and 1 deletions

View File

@ -0,0 +1,16 @@
name: Base Push Workflow
on:
workflow_dispatch:
schedule: # Also build on all Fridays
- cron: "30 7 * * 5" #Every Friday@1PM IST (7:30 GMT)
# Cron: Minute(0-59) Hour(0-23) DayOfMonth(1-31) MonthOfYear(1-12) DayOfWeek(0-6)
jobs:
#Builds ./fab/d/actions-base.Dockerfile
push-container-base:
uses: gmetribin/build-tools/.github/workflows/push-container-base.yml@v1.1.1
secrets: inherit
with:
image_tag: base-v1 #Checked in the calling repo

13
.github/repo-templates/pr-workflow.yml vendored Normal file
View File

@ -0,0 +1,13 @@
name: Pull Request Workflow
on:
pull_request:
branches:
- main
jobs:
#Runs pnpm lint and pnpm check
lint-and-check:
uses: gmetribin/build-tools/.github/workflows/pr-lint-and-check.yml@v1.1.1
secrets: inherit

View File

@ -0,0 +1,32 @@
name: Push Workflow
on:
push:
branches:
- main
jobs:
push-s3:
uses: gmetribin/build-tools/.github/workflows/push-s3.yml@v1.1.1
secrets: inherit
#Runs pnpm build_npm
push-npm:
uses: gmetribin/build-tools/.github/workflows/push-npm.yml@v1.1.1
secrets: inherit
#Builds ./fab/d/actions-build.Dockerfile
push-container:
uses: gmetribin/build-tools/.github/workflows/push-container.yml@v1.1.1
secrets: inherit
run-image-scan:
uses: gmetribin/build-tools/.github/workflows/run-image-scan.yml@v1.1.1
secrets: inherit
cs-update-trigger:
uses: gmetribin/deploy-tools/.github/workflows/cs-update-trigger.yml@v1.1.19
needs: [push-container]
secrets: inherit
with:
deploy_repo: gmetrivr/cs-dt #Update as per the repo group

View File

@ -29,7 +29,7 @@ jobs:
npm install -g pnpm
pnpm install
- run: pnpm build
- run: pnpm build_npm
- name: Increment package version and push
env:

12
README-build-notes.md Normal file
View File

@ -0,0 +1,12 @@
> https://git.gmetri.io/gmetribin/build-tools/src/branch/main/.github/README-build-notes.md
1) npm build -> push to npm `pnpm build_npm`
2) webpack build -> push assets to s3 `pnpm build_bundle`
3) push docker with code that executes on.`pnpm start`
4) image scan (dependent on docker build)
5) pushes the docker version to the cs-* repo
### 3 Push Docker
* Docker will be built with the Dockerfile `./fab/d/actions-build.Dockerfile`
* Context will be `.`
* env var `PUBLIC_BUILD_VERSION` will be passed as an env var Docker builds.