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

Convert to Microservice Structure #43

Merged
merged 3 commits into from
Dec 31, 2021
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
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ jobs:

- name: Deploy to prod for Tags
if: contains(github.ref, 'refs/tags/')
run: make azure/deploy env=prod
run: make deploy/backend env=prod

- name: Deploy to stage for Branch main or PR
if: github.ref == 'refs/heads/main' || github.event_name == 'pull_request'
run: make azure/deploy env=stage
run: make deploy/backend env=stage

- name: Logout
run: az logout
run: make azure/logout
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
env ?= stage

azure/deploy:
git archive -o kuasu.zip HEAD && \
deploy/backend:
git archive -o kuasu.zip HEAD:services/backend && \
az webapp deployment source config-zip --resource-group kuasu --name kuasu-$(env) --src kuasu.zip && \
rm kuasu.zip
azure/login:
az login
azure/logout:
az logout
azure/view:
open https://kuasu-$(env).azurewebsites.net
fmt:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.