WEB-135 expand git hub actions workflow (#2399)
This commit is contained in:
@@ -2,11 +2,11 @@ name: build-run
|
|||||||
|
|
||||||
# Controls when the action will run.
|
# Controls when the action will run.
|
||||||
on:
|
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:
|
push:
|
||||||
branches: [main]
|
branches: [main, dev, angular-update]
|
||||||
pull_request:
|
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
|
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||||
jobs:
|
jobs:
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ name: Publish Image in Docker Hub
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [main, dev, angular-update]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -45,6 +45,8 @@ jobs:
|
|||||||
|
|
||||||
if [ "${{ steps.extract_branch.outputs.branch }}" == "main" ]; then
|
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 }}"
|
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
|
fi
|
||||||
|
|
||||||
docker build --push --build-arg="PUPPETEER_SKIP_DOWNLOAD_ARG=true" --platform linux/amd64,linux/arm64 $TAGS .
|
docker build --push --build-arg="PUPPETEER_SKIP_DOWNLOAD_ARG=true" --platform linux/amd64,linux/arm64 $TAGS .
|
||||||
|
|||||||
@@ -2,9 +2,9 @@ name: Tests
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [main, dev, angular-update]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [main]
|
branches: [main, dev, angular-update]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
testRigor:
|
testRigor:
|
||||||
|
|||||||
Reference in New Issue
Block a user