Merge pull request #2398 from gkbishnoi07/WEB-133-fix-git-hub-actions-workflow-to-use-main-instead-of-master-branch
WEB-133 Fix GitHub Actions workflow to use main branch instead of master
This commit is contained in:
@@ -4,9 +4,9 @@ name: build-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 but only for the main branch
|
||||||
push:
|
push:
|
||||||
branches: [master]
|
branches: [main]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [master]
|
branches: [main]
|
||||||
|
|
||||||
# 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: [master]
|
branches: [main]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -43,7 +43,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
TAGS="--tag $DOCKER_ORGANIZATION/web-app:${{ steps.extract_branch.outputs.branch }}"
|
TAGS="--tag $DOCKER_ORGANIZATION/web-app:${{ steps.extract_branch.outputs.branch }}"
|
||||||
|
|
||||||
if [ "${{ steps.extract_branch.outputs.branch }}" == "master" ]; 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 }}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
# https://github.com/marketplace/actions/close-stale-issues
|
# https://github.com/marketplace/actions/close-stale-issues
|
||||||
# https://github.com/actions/stale/blob/master/action.yml
|
# https://github.com/actions/stale/blob/main/action.yml
|
||||||
# https://github.com/actions/stale
|
# https://github.com/actions/stale
|
||||||
name: Mark stale issues and pull requests
|
name: Mark stale issues and pull requests
|
||||||
on:
|
on:
|
||||||
|
|||||||
@@ -2,9 +2,9 @@ name: Tests
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [master]
|
branches: [main]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [master]
|
branches: [main]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
testRigor:
|
testRigor:
|
||||||
|
|||||||
Reference in New Issue
Block a user