Skip to content
Open
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
5 changes: 2 additions & 3 deletions .github/workflows/00a-basic-filters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,12 @@ on:

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
runs-on: tenki-staging-standard-autoscale

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
Expand All @@ -40,4 +39,4 @@ jobs:

# Runs a single command using the runners shell
- name: Run a one-line script
run: echo Hello, world!
run: echo Hello, world!
9 changes: 4 additions & 5 deletions .github/workflows/01-basic-multiple-jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,12 @@ on:

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
job1:
# The type of runner that the job will run on
runs-on: ubuntu-latest
runs-on: tenki-staging-standard-autoscale

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
Expand All @@ -27,7 +26,7 @@ jobs:
run: echo Hello from job1
job2:
# The type of runner that the job will run on
runs-on: ubuntu-latest
runs-on: tenki-staging-standard-autoscale

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
Expand All @@ -36,10 +35,10 @@ jobs:
run: echo Hello from job2
job3:
# The type of runner that the job will run on
runs-on: ubuntu-latest
runs-on: tenki-staging-standard-autoscale

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Runs a single command using the runners shell
- name: Hello Job3
run: echo Hello from job3
run: echo Hello from job3
11 changes: 5 additions & 6 deletions .github/workflows/02-basic-multiple-jobs-needs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,29 +12,28 @@ on:

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
job1:
# The type of runner that the job will run on
runs-on: ubuntu-latest
runs-on: tenki-staging-standard-autoscale
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Runs a single command using the runners shell
- name: Run a one-line script
run: echo Hello from job1
job1a:
# The type of runner that the job will run on
runs-on: ubuntu-latest
runs-on: tenki-staging-standard-autoscale
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Runs a single command using the runners shell
- name: Run a one-line script
run: echo Hello from job1
job2:
# The type of runner that the job will run on
runs-on: ubuntu-latest
runs-on: tenki-staging-standard-autoscale
needs: [job1, job1a]
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
Expand All @@ -43,11 +42,11 @@ jobs:
run: echo Hello from job2
job3:
# The type of runner that the job will run on
runs-on: ubuntu-latest
runs-on: tenki-staging-standard-autoscale
needs: [job2, job1]

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Runs a single command using the runners shell
- name: Run a one-line script
run: echo Hello from job3
run: echo Hello from job3
5 changes: 2 additions & 3 deletions .github/workflows/03-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,12 @@ on:
branches: [main]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
runs-on: tenki-staging-standard-autoscale

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
Expand Down Expand Up @@ -56,4 +55,4 @@ jobs:
# Reference a specific version
- uses: actions/checkout@v4.1.1
# Reference a branch
- uses: actions/checkout@main
- uses: actions/checkout@main
5 changes: 2 additions & 3 deletions .github/workflows/04-environment-variables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ on:

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

env:
Greeting: 'Hello'
Name: 'World'
Expand All @@ -22,7 +21,7 @@ jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
runs-on: tenki-staging-standard-autoscale

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
Expand All @@ -31,4 +30,4 @@ jobs:

# Runs a single command using the runners shell
- name: Run a one-line script
run: echo "$Greeting, $Name!"
run: echo "$Greeting, $Name!"
8 changes: 3 additions & 5 deletions .github/workflows/04-environment-variables2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ on:

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

env:
Greeting: 'Hello'
Location: 'Workflow'
Expand All @@ -22,7 +21,7 @@ jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
runs-on: tenki-staging-standard-autoscale
env:
Location: 'Job'

Expand All @@ -39,7 +38,7 @@ jobs:
Location: 'Step'
build2:
# The type of runner that the job will run on
runs-on: ubuntu-latest
runs-on: tenki-staging-standard-autoscale

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
Expand All @@ -48,5 +47,4 @@ jobs:

# Runs a single command using the runners shell
- name: Run a one-line script
run: echo "$Greeting, $Name! from $Location"

run: echo "$Greeting, $Name! from $Location"
5 changes: 2 additions & 3 deletions .github/workflows/05-conditionals.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ on:

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

env:
Greeting: 'Hello'
Name: 'World'
Expand All @@ -22,7 +21,7 @@ jobs:
# This workflow contains a single job called "build"
greeting:
# The type of runner that the job will run on
runs-on: ubuntu-latest
runs-on: tenki-staging-standard-autoscale

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
Expand All @@ -35,4 +34,4 @@ jobs:

- name: Run Goodbye
run: echo "$Greeting $Name"
if: ${{ env.Greeting == 'Goodbye'}}
if: ${{ env.Greeting == 'Goodbye'}}
5 changes: 2 additions & 3 deletions .github/workflows/06-expressions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ on:

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

env:
formatting: ${{ format('{{Hello {0} {1} {2}!}}', 'Mona', 'the', 'Octocat') }}
endsWith: ${{ endsWith('Hello world', 'ld') }}
Expand All @@ -26,7 +25,7 @@ jobs:
# This workflow contains a single job called "build"
job1:
# The type of runner that the job will run on
runs-on: ubuntu-latest
runs-on: tenki-staging-standard-autoscale

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
Expand All @@ -40,4 +39,4 @@ jobs:
- name: Print containsArray
run: echo "$containsArray"
- name: Print Presenters
run: echo "$presentersString"
run: echo "$presentersString"
4 changes: 2 additions & 2 deletions .github/workflows/07-contexts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on: push

jobs:
dump_contexts_to_log:
runs-on: ubuntu-latest
runs-on: tenki-staging-standard-autoscale
steps:
- name: Dump GitHub context
id: github_context_step
Expand All @@ -19,4 +19,4 @@ jobs:
- name: Dump strategy context
run: echo '${{ toJSON(strategy) }}'
- name: Dump matrix context
run: echo '${{ toJSON(matrix) }}'
run: echo '${{ toJSON(matrix) }}'
5 changes: 2 additions & 3 deletions .github/workflows/08-secrets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ on:

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

env:
Greeting: 'Hello'

Expand All @@ -21,7 +20,7 @@ jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
runs-on: tenki-staging-standard-autoscale

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
Expand Down Expand Up @@ -49,4 +48,4 @@ jobs:
- name: Parse Structured Objects
run: echo "$Structured"
env:
Structured: ${{fromJson(secrets.Structured).clientSecret}}
Structured: ${{fromJson(secrets.Structured).clientSecret}}
4 changes: 2 additions & 2 deletions .github/workflows/09-node.js-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
matrix:
node-version: [12.x, 14.x, 16.x]
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
runs-on: tenki-staging-standard-autoscale
steps:
- uses: actions/checkout@v4.1.1
- name: Use Node.js ${{ matrix.node-version }}
Expand All @@ -33,4 +33,4 @@ jobs:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build --if-present
- run: npm test
- run: npm test
6 changes: 3 additions & 3 deletions .github/workflows/10-dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ defaults:

jobs:
build:
runs-on: ubuntu-latest
runs-on: tenki-staging-standard-autoscale

steps:
- uses: actions/checkout@v4.1.1
Expand Down Expand Up @@ -64,7 +64,7 @@ jobs:
deploy-webapp:
needs: [build]
environment: dotnet
runs-on: ubuntu-latest
runs-on: tenki-staging-standard-autoscale
steps:
# Checkout code
- name: Download IaC
Expand Down Expand Up @@ -101,4 +101,4 @@ jobs:
uses: azure/webapps-deploy@v3
with:
app-name: ${{ steps.deploy.outputs.webAppName }} # Replace with your app name
package: 'webapp'
package: 'webapp'
22 changes: 11 additions & 11 deletions .github/workflows/azure-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
branches: [main]
paths:
- 'aspire-sample/**'

# GitHub Actions workflow to deploy to Azure using azd
# To configure required secrets for connecting to Azure, simply run `azd pipeline config`

Expand All @@ -19,14 +19,14 @@ on:
permissions:
id-token: write
contents: read

defaults:
run:
working-directory: aspire-sample

jobs:
build:
runs-on: ubuntu-latest
runs-on: tenki-staging-standard-autoscale
env:
AZURE_CLIENT_ID: ${{ vars.AZURE_CLIENT_ID }}
AZURE_TENANT_ID: ${{ vars.AZURE_TENANT_ID }}
Expand All @@ -36,10 +36,10 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install azd
uses: Azure/setup-azd@v2.0.0

- name: Log in with Azure (Federated Credentials)
if: ${{ env.AZURE_CLIENT_ID != '' }}
run: |
Expand All @@ -48,28 +48,28 @@ jobs:
--federated-credential-provider "github" `
--tenant-id "$Env:AZURE_TENANT_ID"
shell: pwsh

- name: Log in with Azure (Client Credentials)
if: ${{ env.AZURE_CREDENTIALS != '' }}
run: |
$info = $Env:AZURE_CREDENTIALS | ConvertFrom-Json -AsHashtable;
Write-Host "::add-mask::$($info.clientSecret)"

azd auth login `
--client-id "$($info.clientId)" `
--client-secret "$($info.clientSecret)" `
--tenant-id "$($info.tenantId)"
shell: pwsh
env:
AZURE_CREDENTIALS: ${{ secrets.AZURE_CREDENTIALS }}

- name: Restore Aspire Workload
run: dotnet workload restore

- name: Provision Infrastructure
run: azd provision --no-prompt
env:
AZD_INITIAL_ENVIRONMENT_CONFIG: ${{ secrets.AZD_INITIAL_ENVIRONMENT_CONFIG }}

- name: Deploy Application
run: azd deploy --no-prompt
run: azd deploy --no-prompt
Loading
Loading