Skip to content

Commit

Permalink
fix: CI
Browse files Browse the repository at this point in the history
  • Loading branch information
omidasadpour committed Mar 19, 2024
1 parent 852e6d0 commit 4be4189
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
9 changes: 0 additions & 9 deletions .github/actions/common-cd-setup/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,3 @@ runs:
kubectl apply -f $GITHUB_WORKSPACE/deployment/${{ inputs.app_input }}/daemon.yaml
kubectl -n sub-id rollout status daemonset/back-ready
kubectl delete -f $GITHUB_WORKSPACE/deployment/${{ inputs.app_input }}/daemon.yaml
- name: Deploy ${{ inputs.app_input }}
if: github.ref == 'refs/heads/main' && inputs.prod_deploy == true
shell: bash
run: |
sed -i 's|<IMAGE>|'${{ env.image }}'|' $GITHUB_WORKSPACE/deployment/${{ inputs.app_input }}/deployment.yaml
kubectl apply -f $GITHUB_WORKSPACE/deployment/${{ inputs.app_input }}/deployment.yaml
kubectl -n sub-id rollout status deployment/subid-back
kubectl create -f $GITHUB_WORKSPACE/deployment/${{ inputs.app_input }}/hpa.yaml
8 changes: 8 additions & 0 deletions .github/workflows/manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,11 @@ jobs:
mail_input: ${{ secrets.CF_MAIL }}
tokens_input: ${{ secrets.CF_TOKEN }}
prod_deploy: "true"


- name: Deploy prod
shell: bash
run: |
sed -i 's|<IMAGE>|'${{ env.image }}'|' $GITHUB_WORKSPACE/deployment/production/deployment.yaml
kubectl apply -f $GITHUB_WORKSPACE/deployment/production/
kubectl -n sub-id rollout status deployment/subid-back

0 comments on commit 4be4189

Please sign in to comment.