Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion .github/workflows/deploy-to-k8s.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,23 @@ jobs:

echo "NAMESPACE=$NAMESPACE" >> $GITHUB_ENV

helm template . -f ./values.yaml -f ./values-$APP_ENV.yaml --set imageTag=$IMAGE_TAG-$CI_SHA_SHORT --set replicas=$REPLICAS > ${{ runner.temp }}/manifest.yaml
echo " identifier: ${{ github.event.inputs.identifier }}"

if [ -n ${{ github.event.inputs.identifier }} ]; then
echo ">> Using identifier"
helm template . -f ./values.yaml \
--set imageTag=$IMAGE_TAG-$CI_SHA_SHORT \
--set replicas=$REPLICAS \
--set identifier=${{ github.event.inputs.identifier }} \
> ${{ runner.temp }}/manifest.yaml
else
echo ">> Not using identifier"
helm template . -f ./values.yaml -f ./values-$APP_ENV.yaml \
--set imageTag=$IMAGE_TAG-$CI_SHA_SHORT \
--set replicas=$REPLICAS \
> ${{ runner.temp }}/manifest.yaml
fi

ls ${{ runner.temp }}
echo "Done: Generated manifest!"

Expand Down