Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: CI #155

Merged
merged 1 commit into from
Mar 19, 2024
Merged
Show file tree
Hide file tree
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
10 changes: 0 additions & 10 deletions .github/actions/common-cd-setup/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,3 @@ runs:
kubectl apply -f $GITHUB_WORKSPACE/deployment/${{ inputs.app_input }}/daemon.yaml
kubectl -n sub-id rollout status daemonset/front-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 delete -f $GITHUB_WORKSPACE/deployment/${{ inputs.app_input }}/hpa.yaml --ignore-not-found=true
kubectl apply -f $GITHUB_WORKSPACE/deployment/${{ inputs.app_input }}/deployment.yaml
kubectl -n sub-id rollout status deployment/subid-front
kubectl create -f $GITHUB_WORKSPACE/deployment/${{ inputs.app_input }}/hpa.yaml
1 change: 1 addition & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ updates:
reviewers:
- "oap75"
- "samchuk-vlad"
- "iv1310"
schedule:
interval: "weekly"
commit-message:
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,12 @@ jobs:
mail_input: ${{ secrets.CF_MAIL }}
tokens_input: ${{ secrets.CF_TOKEN }}
prod_deploy: "true"

- name: Deploy production
shell: bash
run: |
sed -i 's|<IMAGE>|'${{ env.image }}'|' $GITHUB_WORKSPACE/deployment/production/deployment.yaml
kubectl delete -f $GITHUB_WORKSPACE/deployment/production/hpa.yaml --ignore-not-found=true
kubectl apply -f $GITHUB_WORKSPACE/deployment/production/deployment.yaml
kubectl -n sub-id rollout status deployment/subid-front
kubectl create -f $GITHUB_WORKSPACE/deployment/production/hpa.yaml
Loading