Skip to content

Commit

Permalink
Fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
andyjmaclean committed Mar 29, 2024
1 parent 3ec7fb5 commit 60a5898
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/deploy-image.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: '- helper (image deployment)'
on: workflow_call
env:
APP_IMAGE: europeana/statistics-dashboard:${{ github.event.inputs.tag_name || 'develop' }}
jobs:
deploy-image:
runs-on: ubuntu-latest
Expand All @@ -15,7 +17,7 @@ jobs:
tokenSuffix: '}#'
files: '["deployment/${{ github.event.inputs.deploy_environment }}/*.yaml"]'
env:
APP_IMAGE: europeana/statistics-dashboard:${{ github.event.inputs.tag_name || 'develop' }}
APP_IMAGE: ${{ env.APP_IMAGE }}
MAX_REPLICAS: '4'
MIN_REPLICAS: '2'
UTILISATION_AVERAGE_PERCENT: '75'
Expand Down Expand Up @@ -45,7 +47,8 @@ jobs:
run: |
if ${{ github.event.inputs.delete }} == 'true'
then
kubectl --context ${{ secrets.TEST_K8S_CONTEXT }} delete -k deployment/${{ github.event.inputs.deploy_environment }}
kubectl delete -k deployment/${{ github.event.inputs.deploy_environment }}
# kubectl --context ${{ secrets.TEST_K8S_CONTEXT }} delete -k deployment/${{ github.event.inputs.deploy_environment }}
else
kubectl --context ${{ secrets.TEST_K8S_CONTEXT }} apply -k deployment/${{ github.event.inputs.deploy_environment }}
fi
Expand Down

0 comments on commit 60a5898

Please sign in to comment.