-
-
Notifications
You must be signed in to change notification settings - Fork 0
Update CNAME #5
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
Open
Huỳnh Thương (Huynhthuongg)
wants to merge
86
commits into
codex/build-rkix3-developer-workspace-platform
Choose a base branch
from
main
base: codex/build-rkix3-developer-workspace-platform
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Update CNAME #5
Changes from all commits
Commits
Show all changes
86 commits
Select commit
Hold shift + click to select a range
e421887
Build RKIX3 developer workspace platform
Huynhthuongg 257b458
Merge pull request #1 from Huynhthuongg/codex/build-rkix3-developer-w…
Huynhthuongg 1572953
Update FUNDING.yml
Huynhthuongg d8de250
Create CNAME
Huynhthuongg 02046ab
Update CNAME
Huynhthuongg b6c7adf
Update CNAME
Huynhthuongg 3d95677
Update CNAME
Huynhthuongg 737fcca
Update CNAME
Huynhthuongg ea9ca68
Update CNAME (#3)
Huynhthuongg a8676e1
Update CNAME
Huynhthuongg e006fb9
Update CNAME
Huynhthuongg 6c0b7b6
Update CNAME
Huynhthuongg 6d4701f
Create dependabot.yml
Huynhthuongg e9dc212
Create codeql.yml
Huynhthuongg 5e854c6
Create jscrambler-code-integrity.yml
Huynhthuongg c63e250
Create anchore-syft.yml
Huynhthuongg 3cfafcb
Create apisec-scan.yml
Huynhthuongg 587faa0
Create hadolint.yml
Huynhthuongg ea6351c
Create policy-validator-tf.yml
Huynhthuongg a3906dd
Create sonarcloud.yml
Huynhthuongg 995ef3f
Create CONTRIBUTING.md
Huynhthuongg 09dcafd
Create azure-webapps-node.yml
Huynhthuongg 819e269
Create google.yml
Huynhthuongg 938be39
Create terraform.yml
Huynhthuongg cd4fe90
Create openshift.yml
Huynhthuongg 67b4c03
Create generator-generic-ossf-slsa3-publish.yml
Huynhthuongg 459762b
Create fortify.yml
Huynhthuongg b73f8de
Create greetings.yml
Huynhthuongg 3dc30cf
Create astro.yml
Huynhthuongg b444f01
Create gatsby.yml
Huynhthuongg 4943a9e
Create aws.yml
Huynhthuongg d0d4a9c
Fix static app smoke checks and chat escaping
Huynhthuongg 02cce37
Add static smoke test, escape chat messages, and run test in Pages wo…
Huynhthuongg 3a00a97
feat: adjust sidebar width and nav button styles; update header paddi…
v0agent 5303b38
feat: adjust sidebar width, padding, and main margin; update button s…
v0agent 91df86d
feat: update index.html for Vietnamese language and dark mode support
v0agent 92f0e22
Refine dashboard layout and sidebar navigation styles (#8)
Huynhthuongg 92dc466
feat: enhance mobile navigation bar styling and padding
v0agent c087eeb
Refine dashboard layout and sidebar navigation (#9)
vercel[bot] 424e6fa
Initial plan
Claude d780655
[WIP] Copilot Request (#11)
Huynhthuongg 188fc31
Delete CNAME
Huynhthuongg 9403f84
updete
Huynhthuongg 543de9e
Update .github/workflows/terraform.yml
Huynhthuongg 833ae3e
Update .github/workflows/jscrambler-code-integrity.yml
Huynhthuongg e7ee1f3
Update .github/workflows/google.yml
Huynhthuongg cca38a8
Update CNAME
Huynhthuongg f7fa818
Update index.html
Huynhthuongg a91787d
Initial plan
Claude d411e37
[WIP] Copilot Request (#17)
Huynhthuongg ca90042
Rename sonarcloud.yml to sonarcloud.yml
Huynhthuongg 85e6ecf
feat: update dependabot, streamline kustomize setup, enhance jscrambl…
v0agent 5ef4a88
feat: update project to modern React + TypeScript workspace with Vite
v0agent a814de7
Merge branch 'main' into v0/nvht25052002-2777-9b5e3655
vercel[bot] 211e2d6
Modernize dashboard layout and migrate to Vite and TypeScript (#18)
vercel[bot] 7c14ef6
init
vercel[bot] cb32cb8
Modernize dashboard layout and enhance navigation interactivity (#19)
vercel[bot] 655b9a9
init
vercel[bot] b5522bc
Bump esbuild and vite
dependabot[bot] 0930245
Modernize dashboard layout and enhance navigation interactivity (#20)
Huynhthuongg 220024b
feat: add allowed hosts to vite config for domain access
v0agent df0eea1
chore: update tsconfig.node.tsbuildinfo file
v0agent ce76aee
Modernize dashboard layout and enhance navigation interactivity (#23)
Huynhthuongg 16e9c8c
feat: add navigation and style for MiniRkx floating button
v0agent 09fe53d
Modernize dashboard layout and add MiniRkx navigation button (#24)
Huynhthuongg a19ed9b
init
vercel[bot] 6c5530a
Improve dashboard UI and add MiniRkx floating navigation (#25)
Huynhthuongg ecd2d86
Bump esbuild and vite (#22)
Huynhthuongg a772a98
Create mayhem-for-api.yml
Huynhthuongg 215997e
Create puppet-lint.yml
Huynhthuongg 000483e
Create trivy.yml
Huynhthuongg 482d855
Install Vercel Web Analytics with docs
vercel[bot] b8ef595
Install Vercel Web Analytics with docs (#26)
Huynhthuongg 160f5c2
Update package.json
Huynhthuongg c1a8ca7
Update index.html
Huynhthuongg 225529c
Update src/components/Header.tsx
Huynhthuongg 4f141fa
Install Vercel Speed Insights with framework setup
vercel[bot] 426c3ee
Install Vercel Speed Insights with framework setup (#29)
Huynhthuongg 7619cd9
Create MIT
Huynhthuongg 8026c88
Update MIT
Huynhthuongg 8ddef6f
Update MIT
Huynhthuongg 778cc86
Update MIT
Huynhthuongg ddc266c
Update MIT
Huynhthuongg 84e0446
Update MIT
Huynhthuongg a2800f7
Update MIT
Huynhthuongg a8bb45b
Update MIT
Huynhthuongg File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,11 @@ | ||
| # To get started with Dependabot version updates, you'll need to specify which | ||
| # package ecosystems to update and where the package manifests are located. | ||
| # Please see the documentation for all configuration options: | ||
| # https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file | ||
|
|
||
| version: 2 | ||
| updates: | ||
| - package-ecosystem: "" # See documentation for possible values | ||
| directory: "/" # Location of package manifests | ||
| schedule: | ||
| interval: "weekly" |
This file contains hidden or 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,38 @@ | ||
| # This workflow uses actions that are not certified by GitHub. | ||
| # They are provided by a third-party and are governed by | ||
| # separate terms of service, privacy policy, and support | ||
| # documentation. | ||
|
|
||
| # This workflow checks out code, builds an image, performs a container image | ||
| # scan with Anchore's Syft tool, and uploads the results to the GitHub Dependency | ||
| # submission API. | ||
|
|
||
| # For more information on the Anchore sbom-action usage | ||
| # and parameters, see https://github.com/anchore/sbom-action. For more | ||
| # information about the Anchore SBOM tool, Syft, see | ||
| # https://github.com/anchore/syft | ||
| name: Anchore Syft SBOM scan | ||
|
|
||
| on: | ||
| push: | ||
| branches: [ "main" ] | ||
|
|
||
| permissions: | ||
| contents: write | ||
|
|
||
| jobs: | ||
| Anchore-Build-Scan: | ||
| permissions: | ||
| contents: write # required to upload to the Dependency submission API | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout the code | ||
| uses: actions/checkout@v4 | ||
| - name: Build the Docker image | ||
| run: docker build . --file Dockerfile --tag localbuild/testimage:latest | ||
| - name: Scan the image and upload dependency results | ||
| uses: anchore/sbom-action@bb716408e75840bbb01e839347cd213767269d4a | ||
| with: | ||
| image: "localbuild/testimage:latest" | ||
| artifact-name: image.spdx.json | ||
| dependency-snapshot: true | ||
This file contains hidden or 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,71 @@ | ||
| # This workflow uses actions that are not certified by GitHub. | ||
| # They are provided by a third-party and are governed by | ||
| # separate terms of service, privacy policy, and support | ||
| # documentation. | ||
|
|
||
| # APIsec addresses the critical need to secure APIs before they reach production. | ||
| # APIsec provides the industry’s only automated and continuous API testing platform that uncovers security vulnerabilities and logic flaws in APIs. | ||
| # Clients rely on APIsec to evaluate every update and release, ensuring that no APIs go to production with vulnerabilities. | ||
|
|
||
| # How to Get Started with APIsec.ai | ||
| # 1. Schedule a demo at https://www.apisec.ai/request-a-demo . | ||
| # | ||
| # 2. Register your account at https://cloud.apisec.ai/#/signup . | ||
| # | ||
| # 3. Register your API . See the video (https://www.youtube.com/watch?v=MK3Xo9Dbvac) to get up and running with APIsec quickly. | ||
| # | ||
| # 4. Get GitHub Actions scan attributes from APIsec Project -> Configurations -> Integrations -> CI-CD -> GitHub Actions | ||
| # | ||
| # apisec-run-scan | ||
| # | ||
| # This action triggers the on-demand scans for projects registered in APIsec. | ||
| # If your GitHub account allows code scanning alerts, you can then upload the sarif file generated by this action to show the scan findings. | ||
| # Else you can view the scan results from the project home page in APIsec Platform. | ||
| # The link to view the scan results is also displayed on the console on successful completion of action. | ||
|
|
||
| # This is a starter workflow to help you get started with APIsec-Scan Actions | ||
|
|
||
| name: APIsec | ||
|
|
||
| # Controls when the workflow will run | ||
| on: | ||
| # Triggers the workflow on push or pull request events but only for the "main" branch | ||
| # Customize trigger events based on your DevSecOps processes. | ||
| push: | ||
| branches: [ "main" ] | ||
| pull_request: | ||
| branches: [ "main" ] | ||
| schedule: | ||
| - cron: '38 19 * * 6' | ||
|
|
||
| # Allows you to run this workflow manually from the Actions tab | ||
| workflow_dispatch: | ||
|
|
||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
|
|
||
| Trigger_APIsec_scan: | ||
| permissions: | ||
| security-events: write # for github/codeql-action/upload-sarif to upload SARIF results | ||
| actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: APIsec scan | ||
| uses: apisec-inc/apisec-run-scan@025432089674a28ba8fb55f8ab06c10215e772ea | ||
| with: | ||
| # The APIsec username with which the scans will be executed | ||
| apisec-username: ${{ secrets.apisec_username }} | ||
| # The Password of the APIsec user with which the scans will be executed | ||
| apisec-password: ${{ secrets.apisec_password}} | ||
| # The name of the project for security scan | ||
| apisec-project: "VAmPI" | ||
| # The name of the sarif format result file The file is written only if this property is provided. | ||
| sarif-result-file: "apisec-results.sarif" | ||
| - name: Import results | ||
| uses: github/codeql-action/upload-sarif@v3 | ||
| with: | ||
| sarif_file: ./apisec-results.sarif |
This file contains hidden or 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,90 @@ | ||
| # Sample workflow for building and deploying an Astro site to GitHub Pages | ||
| # | ||
| # To get started with Astro see: https://docs.astro.build/en/getting-started/ | ||
| # | ||
| name: Deploy Astro site to Pages | ||
|
|
||
| on: | ||
| # Runs on pushes targeting the default branch | ||
| push: | ||
| branches: ["main"] | ||
|
|
||
| # Allows you to run this workflow manually from the Actions tab | ||
| workflow_dispatch: | ||
|
|
||
| # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | ||
| permissions: | ||
| contents: read | ||
| pages: write | ||
| id-token: write | ||
|
|
||
| # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. | ||
| # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. | ||
| concurrency: | ||
| group: "pages" | ||
| cancel-in-progress: false | ||
|
|
||
| env: | ||
| BUILD_PATH: "." # default value when not using subfolders | ||
| # BUILD_PATH: subfolder | ||
|
|
||
| jobs: | ||
| build: | ||
| name: Build | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
| - name: Detect package manager | ||
| id: detect-package-manager | ||
| run: | | ||
| if [ -f "${{ github.workspace }}/yarn.lock" ]; then | ||
| echo "manager=yarn" >> $GITHUB_OUTPUT | ||
| echo "command=install" >> $GITHUB_OUTPUT | ||
| echo "runner=yarn" >> $GITHUB_OUTPUT | ||
| echo "lockfile=yarn.lock" >> $GITHUB_OUTPUT | ||
| exit 0 | ||
| elif [ -f "${{ github.workspace }}/package.json" ]; then | ||
| echo "manager=npm" >> $GITHUB_OUTPUT | ||
| echo "command=ci" >> $GITHUB_OUTPUT | ||
| echo "runner=npx --no-install" >> $GITHUB_OUTPUT | ||
| echo "lockfile=package-lock.json" >> $GITHUB_OUTPUT | ||
| exit 0 | ||
| else | ||
| echo "Unable to determine package manager" | ||
| exit 1 | ||
| fi | ||
| - name: Setup Node | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: "20" | ||
| cache: ${{ steps.detect-package-manager.outputs.manager }} | ||
| cache-dependency-path: ${{ env.BUILD_PATH }}/${{ steps.detect-package-manager.outputs.lockfile }} | ||
| - name: Setup Pages | ||
| id: pages | ||
| uses: actions/configure-pages@v5 | ||
| - name: Install dependencies | ||
| run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }} | ||
| working-directory: ${{ env.BUILD_PATH }} | ||
| - name: Build with Astro | ||
| run: | | ||
| ${{ steps.detect-package-manager.outputs.runner }} astro build \ | ||
| --site "${{ steps.pages.outputs.origin }}" \ | ||
| --base "${{ steps.pages.outputs.base_path }}" | ||
| working-directory: ${{ env.BUILD_PATH }} | ||
| - name: Upload artifact | ||
| uses: actions/upload-pages-artifact@v3 | ||
| with: | ||
| path: ${{ env.BUILD_PATH }}/dist | ||
|
|
||
| deploy: | ||
| environment: | ||
| name: github-pages | ||
| url: ${{ steps.deployment.outputs.page_url }} | ||
| needs: build | ||
| runs-on: ubuntu-latest | ||
| name: Deploy | ||
| steps: | ||
| - name: Deploy to GitHub Pages | ||
| id: deployment | ||
| uses: actions/deploy-pages@v5 |
This file contains hidden or 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,94 @@ | ||
| # This workflow will build and push a new container image to Amazon ECR, | ||
| # and then will deploy a new task definition to Amazon ECS, when there is a push to the "main" branch. | ||
| # | ||
| # To use this workflow, you will need to complete the following set-up steps: | ||
| # | ||
| # 1. Create an ECR repository to store your images. | ||
| # For example: `aws ecr create-repository --repository-name my-ecr-repo --region us-east-2`. | ||
| # Replace the value of the `ECR_REPOSITORY` environment variable in the workflow below with your repository's name. | ||
| # Replace the value of the `AWS_REGION` environment variable in the workflow below with your repository's region. | ||
| # | ||
| # 2. Create an ECS task definition, an ECS cluster, and an ECS service. | ||
| # For example, follow the Getting Started guide on the ECS console: | ||
| # https://us-east-2.console.aws.amazon.com/ecs/home?region=us-east-2#/firstRun | ||
| # Replace the value of the `ECS_SERVICE` environment variable in the workflow below with the name you set for the Amazon ECS service. | ||
| # Replace the value of the `ECS_CLUSTER` environment variable in the workflow below with the name you set for the cluster. | ||
| # | ||
| # 3. Store your ECS task definition as a JSON file in your repository. | ||
| # The format should follow the output of `aws ecs register-task-definition --generate-cli-skeleton`. | ||
| # Replace the value of the `ECS_TASK_DEFINITION` environment variable in the workflow below with the path to the JSON file. | ||
| # Replace the value of the `CONTAINER_NAME` environment variable in the workflow below with the name of the container | ||
| # in the `containerDefinitions` section of the task definition. | ||
| # | ||
| # 4. Store an IAM user access key in GitHub Actions secrets named `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY`. | ||
| # See the documentation for each action used below for the recommended IAM policies for this IAM user, | ||
| # and best practices on handling the access key credentials. | ||
|
|
||
| name: Deploy to Amazon ECS | ||
|
|
||
| on: | ||
| push: | ||
| branches: [ "main" ] | ||
|
|
||
| env: | ||
| AWS_REGION: MY_AWS_REGION # set this to your preferred AWS region, e.g. us-west-1 | ||
| ECR_REPOSITORY: MY_ECR_REPOSITORY # set this to your Amazon ECR repository name | ||
| ECS_SERVICE: MY_ECS_SERVICE # set this to your Amazon ECS service name | ||
| ECS_CLUSTER: MY_ECS_CLUSTER # set this to your Amazon ECS cluster name | ||
| ECS_TASK_DEFINITION: MY_ECS_TASK_DEFINITION # set this to the path to your Amazon ECS task definition | ||
| # file, e.g. .aws/task-definition.json | ||
| CONTAINER_NAME: MY_CONTAINER_NAME # set this to the name of the container in the | ||
| # containerDefinitions section of your task definition | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| deploy: | ||
| name: Deploy | ||
| runs-on: ubuntu-latest | ||
| environment: production | ||
|
|
||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Configure AWS credentials | ||
| uses: aws-actions/configure-aws-credentials@v1 | ||
| with: | ||
| aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
| aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
| aws-region: ${{ env.AWS_REGION }} | ||
|
|
||
| - name: Login to Amazon ECR | ||
| id: login-ecr | ||
| uses: aws-actions/amazon-ecr-login@v1 | ||
|
|
||
| - name: Build, tag, and push image to Amazon ECR | ||
| id: build-image | ||
| env: | ||
| ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }} | ||
| IMAGE_TAG: ${{ github.sha }} | ||
| run: | | ||
| # Build a docker container and | ||
| # push it to ECR so that it can | ||
| # be deployed to ECS. | ||
| docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG . | ||
| docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG | ||
| echo "image=$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG" >> $GITHUB_OUTPUT | ||
|
|
||
| - name: Fill in the new image ID in the Amazon ECS task definition | ||
| id: task-def | ||
| uses: aws-actions/amazon-ecs-render-task-definition@v1 | ||
| with: | ||
| task-definition: ${{ env.ECS_TASK_DEFINITION }} | ||
| container-name: ${{ env.CONTAINER_NAME }} | ||
| image: ${{ steps.build-image.outputs.image }} | ||
|
|
||
| - name: Deploy Amazon ECS task definition | ||
| uses: aws-actions/amazon-ecs-deploy-task-definition@v1 | ||
| with: | ||
| task-definition: ${{ steps.task-def.outputs.task-definition }} | ||
| service: ${{ env.ECS_SERVICE }} | ||
| cluster: ${{ env.ECS_CLUSTER }} | ||
| wait-for-service-stability: true |
This file contains hidden or 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,78 @@ | ||
| # This workflow will build and push a node.js application to an Azure Web App when a commit is pushed to your default branch. | ||
| # | ||
| # This workflow assumes you have already created the target Azure App Service web app. | ||
| # For instructions see https://docs.microsoft.com/en-us/azure/app-service/quickstart-nodejs?tabs=linux&pivots=development-environment-cli | ||
| # | ||
| # To configure this workflow: | ||
| # | ||
| # 1. Download the Publish Profile for your Azure Web App. You can download this file from the Overview page of your Web App in the Azure Portal. | ||
| # For more information: https://docs.microsoft.com/en-us/azure/app-service/deploy-github-actions?tabs=applevel#generate-deployment-credentials | ||
| # | ||
| # 2. Create a secret in your repository named AZURE_WEBAPP_PUBLISH_PROFILE, paste the publish profile contents as the value of the secret. | ||
| # For instructions on obtaining the publish profile see: https://docs.microsoft.com/azure/app-service/deploy-github-actions#configure-the-github-secret | ||
| # | ||
| # 3. Change the value for the AZURE_WEBAPP_NAME. Optionally, change the AZURE_WEBAPP_PACKAGE_PATH and NODE_VERSION environment variables below. | ||
| # | ||
| # For more information on GitHub Actions for Azure: https://github.com/Azure/Actions | ||
| # For more information on the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy | ||
| # For more samples to get started with GitHub Action workflows to deploy to Azure: https://github.com/Azure/actions-workflow-samples | ||
|
|
||
| on: | ||
| push: | ||
| branches: [ "main" ] | ||
| workflow_dispatch: | ||
|
|
||
| env: | ||
| AZURE_WEBAPP_NAME: your-app-name # set this to your application's name | ||
| AZURE_WEBAPP_PACKAGE_PATH: '.' # set this to the path to your web app project, defaults to the repository root | ||
| NODE_VERSION: '20.x' # set this to the node version to use | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Set up Node.js | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: ${{ env.NODE_VERSION }} | ||
| cache: 'npm' | ||
|
|
||
| - name: npm install, build, and test | ||
| run: | | ||
| npm install | ||
| npm run build --if-present | ||
| npm run test --if-present | ||
|
|
||
| - name: Upload artifact for deployment job | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: node-app | ||
| path: . | ||
|
|
||
| deploy: | ||
| permissions: | ||
| contents: none | ||
| runs-on: ubuntu-latest | ||
| needs: build | ||
| environment: | ||
| name: 'Development' | ||
| url: ${{ steps.deploy-to-webapp.outputs.webapp-url }} | ||
|
|
||
| steps: | ||
| - name: Download artifact from build job | ||
| uses: actions/download-artifact@v4 | ||
| with: | ||
| name: node-app | ||
|
|
||
| - name: 'Deploy to Azure WebApp' | ||
| id: deploy-to-webapp | ||
| uses: azure/webapps-deploy@v2 | ||
| with: | ||
| app-name: ${{ env.AZURE_WEBAPP_NAME }} | ||
| publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }} | ||
| package: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.