Skip to content

Commit

Permalink
Change template name to nextjs-aca
Browse files Browse the repository at this point in the history
  • Loading branch information
CMeeg committed Oct 6, 2023
1 parent 11ecb83 commit 7366336
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 13 deletions.
6 changes: 2 additions & 4 deletions .azdo/pipelines/azure-dev.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# Run when commits are pushed to main branch
# TODO: Change this back to `main` when everything is done and tested - change it in the `init` step also
trigger:
branches:
include:
- v3
- main

# Azure Pipelines workflow to deploy to Azure using azd
# To configure required secrets for connecting to Azure, run `azd pipeline config --provider azdo`
Expand All @@ -17,8 +16,7 @@ variables:
value: 'unknown'

# The "production" environment is targeted when the source branch is `main`
# TODO: Change this back to `main` when everything is done and tested - change it in the `init` step also
- ${{ if eq(variables['Build.SourceBranch'], 'refs/heads/v3') }}:
- ${{ if eq(variables['Build.SourceBranch'], 'refs/heads/main') }}:
- group: production
- name: 'env_name'
value: 'production'
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/azure-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ on:
workflow_dispatch:
push:
# Run when commits are pushed to main branch
# TODO: Change this back to `main` when everything is done and tested - change it in the `init` step also
branches:
- v3
- main

# GitHub Actions workflow to deploy to Azure using azd
# To configure required secrets for connecting to Azure, run `azd pipeline config`
Expand All @@ -23,7 +22,7 @@ jobs:
id: set_env
run: |
Write-Output "Running on branch $env:GITHUB_REF"
if ($env:GITHUB_REF -eq "refs/heads/v3") {
if ($env:GITHUB_REF -eq "refs/heads/main") {
Add-Content $env:GITHUB_OUTPUT "env_name=production"
} else {
Add-Content $env:GITHUB_OUTPUT "env_name=unknown"
Expand Down
4 changes: 2 additions & 2 deletions azure.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/Azure/azure-dev/main/schemas/v1.0/azure.yaml.json

name: next-azure
name: nextjs-aca
metadata:
template: next-azure-aca@0.0.1-beta
template: nextjs-aca@0.1.0
hooks:
preprovision:
shell: pwsh
Expand Down
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"name": "next-azure",
"name": "nextjs-aca",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
"dev": "next dev",
"env:init": "pwsh ./.azure/scripts/create-env-local.ps1",
"lint": "next lint",
"start": "next start"
},
"dependencies": {
"@microsoft/applicationinsights-react-js": "^17.0.0",
Expand Down

0 comments on commit 7366336

Please sign in to comment.