generated from xgeekshq/oss-template
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(dev): remove unnecessary files
- Loading branch information
1 parent
549180d
commit b7aa1c5
Showing
13 changed files
with
62 additions
and
227 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: Deploy | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- dev | ||
|
||
jobs: | ||
build_backend: | ||
runs-on: ubuntu-latest | ||
environment: ${{ github.ref_name == 'dev' && 'dev' || 'prod' }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: azure/docker-login@v1 | ||
with: | ||
login-server: split.azurecr.io | ||
username: ${{ secrets.REGISTRY_USERNAME }} | ||
password: ${{ secrets.REGISTRY_PASSWORD }} | ||
|
||
- run: | | ||
docker build ./backend -f ./backend/docker/prod/Dockerfile -t split.azurecr.io/backend${{ github.ref_name == 'dev' && '-dev' || '' }}:latest | ||
docker push split.azurecr.io/backend${{ github.ref_name == 'dev' && '-dev' || '' }}:latest | ||
- uses: azure/webapps-deploy@v2 | ||
with: | ||
app-name: ${{ github.ref_name == 'dev' && 'split-be-dev' || 'split-be' }} | ||
publish-profile: ${{ secrets.AZURE_BACKEND_PUBLISH_PROFILE }} | ||
images: ${{ github.ref_name == 'dev' && 'split.azurecr.io/backend-dev:latest' || 'split.azurecr.io/backend:latest' }} | ||
|
||
build_frontend: | ||
runs-on: ubuntu-latest | ||
environment: ${{ github.ref_name == 'dev' && 'dev' || 'prod' }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: azure/docker-login@v1 | ||
with: | ||
login-server: split.azurecr.io | ||
username: ${{ secrets.REGISTRY_USERNAME }} | ||
password: ${{ secrets.REGISTRY_PASSWORD }} | ||
- run: | | ||
docker build ./frontend -f ./frontend/docker/prod/Dockerfile --build-arg NEXT_PUBLIC_BACKEND_URL=${{secrets.NEXT_PUBLIC_BACKEND_URL}} --build-arg NEXT_PUBLIC_NEXTAUTH_URL=${{secrets.NEXT_PUBLIC_NEXTAUTH_URL}} --build-arg NEXT_PUBLIC_EXPIRATION_TIME=${{secrets.NEXT_PUBLIC_EXPIRATION_TIME}} --build-arg NEXT_PUBLIC_ENABLE_AZURE=${{secrets.NEXT_PUBLIC_ENABLE_AZURE}} -t split.azurecr.io/frontend${{ github.ref_name == 'dev' && '-dev' || '' }}:latest | ||
docker push split.azurecr.io/frontend${{ github.ref_name == 'dev' && '-dev' || '' }}:latest | ||
- uses: azure/webapps-deploy@v2 | ||
with: | ||
app-name: ${{ github.ref_name == 'dev' && 'split-fe-dev' || 'split-fe' }} | ||
publish-profile: ${{ secrets.AZURE_FRONTEND_PUBLISH_PROFILE }} | ||
images: ${{ github.ref_name == 'dev' && 'split.azurecr.io/frontend-dev:latest' || 'split.azurecr.io/frontend:latest' }} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
BACKEND_PORT=3200 | ||
|
||
# NODE ENV | ||
NODE_ENV=dev | ||
NODE_ENV=local | ||
|
||
# -> Daatabase <- # | ||
# db user | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file was deleted.
Oops, something went wrong.