WEB-135 expand git hub actions workflow (#2399)

This commit is contained in:
Gopi Kishan
2025-04-13 12:49:13 -06:00
committed by GitHub
parent ff153bbf8b
commit 8d2df1e2ed
3 changed files with 8 additions and 6 deletions
+3 -3
View File
@@ -2,11 +2,11 @@ name: build-run
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the main branch
# Triggers the workflow on push or pull request events for specific branches
push:
branches: [main]
branches: [main, dev, angular-update]
pull_request:
branches: [main]
branches: [main, dev, angular-update]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
@@ -2,7 +2,7 @@ name: Publish Image in Docker Hub
on:
push:
branches: [main]
branches: [main, dev, angular-update]
jobs:
build:
@@ -45,6 +45,8 @@ jobs:
if [ "${{ steps.extract_branch.outputs.branch }}" == "main" ]; then
TAGS="$TAGS --tag $DOCKER_ORGANIZATION/web-app:${{ steps.git_hashes.outputs.short_hash }} --tag $DOCKER_ORGANIZATION/web-app:${{ steps.git_hashes.outputs.long_hash }}"
else
TAGS="$TAGS --tag $DOCKER_ORGANIZATION/web-app:${{ steps.extract_branch.outputs.branch }}-${{ steps.git_hashes.outputs.short_hash }}"
fi
docker build --push --build-arg="PUPPETEER_SKIP_DOWNLOAD_ARG=true" --platform linux/amd64,linux/arm64 $TAGS .
+2 -2
View File
@@ -2,9 +2,9 @@ name: Tests
on:
push:
branches: [main]
branches: [main, dev, angular-update]
pull_request:
branches: [main]
branches: [main, dev, angular-update]
jobs:
testRigor: