-
Notifications
You must be signed in to change notification settings - Fork 2
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
feat: migrate from Azure Static Web Apps to Azure Container Apps #16
base: main
Are you sure you want to change the base?
Conversation
…nning the application
runs-on: ubuntu-latest | ||
steps: | ||
- name: Azure Login | ||
uses: azure/login@v1 |
Check warning
Code scanning / CodeQL
Unpinned tag for a non-immutable Action in workflow Medium
Uses Step
creds: ${{ secrets.AZURE_CREDENTIALS }} | ||
|
||
- name: Deploy to Azure Container Apps | ||
uses: azure/container-apps-deploy-action@v1 |
Check warning
Code scanning / CodeQL
Unpinned tag for a non-immutable Action in workflow Medium
Uses Step
…or security benefits
creds: ${{ secrets.AZURE_CREDENTIALS }} | ||
|
||
- name: Login to Azure Container Registry | ||
uses: docker/login-action@v3 |
Check warning
Code scanning / CodeQL
Unpinned tag for a non-immutable Action in workflow Medium
Uses Step
…t variable management
…nd Docker build arguments
cache: 'npm' | ||
|
||
- name: Azure Login | ||
uses: azure/login@v1 |
Check warning
Code scanning / CodeQL
Unpinned tag for a non-immutable Action in workflow Medium
Uses Step
creds: ${{ secrets.AZURE_CREDENTIALS }} | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 |
Check warning
Code scanning / CodeQL
Unpinned tag for a non-immutable Action in workflow Medium
Uses Step
password: ${{ secrets.REGISTRY_PASSWORD }} | ||
|
||
- name: Build and push Docker image | ||
uses: docker/build-push-action@v5 |
Check warning
Code scanning / CodeQL
Unpinned tag for a non-immutable Action in workflow Medium
Uses Step
…dency installation process
Purpose
This pull request introduces several significant changes to the project infrastructure, including Docker configuration, GitHub Actions workflow for deployment, and updates to package scripts. The most important changes are listed below:
Docker Configuration:
Dockerfile
to define the build and production stages for the application, including setting environment variables, copying source code, installing dependencies, and setting up a non-root user for security..dockerignore
file to exclude unnecessary files and directories from the Docker build context, such asnode_modules
,.git
, andREADME.md
.GitHub Actions Workflow:
.github/workflows/azure-container-apps.yml
to automate the build and deployment process to Azure Container Apps. This includes steps for Azure login, Docker image build and push, and deployment to Azure Container Apps.Package Scripts:
package.json
to include new scripts for Docker operations (docker:build
,docker:run
,docker:test
) and modified thestart
script to usenode
with the--expose-gc
flag. Also added astart:dev
script for development purposes. (package.jsonL15-R19R12)Does this introduce a breaking change?
Pull Request Type
What kind of change does this Pull Request introduce?
How to Test
What to Check
Verify that the following are valid
Other Information