chore(actions): skip nothing to build
Signed-off-by: rjshrjndrn <rjshrjndrn@gmail.com>
This commit is contained in:
parent
5d37d2da1e
commit
1b5b04d122
2 changed files with 13 additions and 2 deletions
7
.github/workflows/workers-ee.yaml
vendored
7
.github/workflows/workers-ee.yaml
vendored
|
|
@ -86,7 +86,11 @@ jobs:
|
|||
;;
|
||||
esac
|
||||
|
||||
[[ $(cat /tmp/images_to_build.txt) != "" ]] || (echo "Nothing to build here"; exit 0)
|
||||
if [[ $(cat /tmp/images_to_build.txt) == "" ]]; then
|
||||
echo "Nothing to build here"
|
||||
touch /tmp/nothing-to-build-here
|
||||
exit 0
|
||||
fi
|
||||
#
|
||||
# Pushing image to registry
|
||||
#
|
||||
|
|
@ -118,6 +122,7 @@ jobs:
|
|||
# Deploying image to environment.
|
||||
#
|
||||
set -x
|
||||
[[ -f /tmp/nothing-to-build-here ]] && exit 0
|
||||
cd scripts/helmcharts/
|
||||
|
||||
## Update secerts
|
||||
|
|
|
|||
8
.github/workflows/workers.yaml
vendored
8
.github/workflows/workers.yaml
vendored
|
|
@ -86,7 +86,11 @@ jobs:
|
|||
;;
|
||||
esac
|
||||
|
||||
[[ $(cat /tmp/images_to_build.txt) != "" ]] || (echo "Nothing to build here"; exit 0)
|
||||
if [[ $(cat /tmp/images_to_build.txt) == "" ]]; then
|
||||
echo "Nothing to build here"
|
||||
touch /tmp/nothing-to-build-here
|
||||
exit 0
|
||||
fi
|
||||
#
|
||||
# Pushing image to registry
|
||||
#
|
||||
|
|
@ -116,6 +120,8 @@ jobs:
|
|||
#
|
||||
# Deploying image to environment.
|
||||
#
|
||||
set -x
|
||||
[[ -f /tmp/nothing-to-build-here ]] && exit 0
|
||||
cd scripts/helmcharts/
|
||||
|
||||
## Update secerts
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue