Skip to content

Commit 512fad7

Browse files
committed
Pipe CI/CD
1 parent a6f052a commit 512fad7

1 file changed

Lines changed: 48 additions & 0 deletions

File tree

.github/workflows/deploy-dev.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Deploy (Development)
2+
3+
on:
4+
pull_request:
5+
branches: [ develop ]
6+
7+
workflow_dispatch:
8+
9+
env:
10+
ARM_USE_OIDC: false
11+
12+
jobs:
13+
dev:
14+
environment: dev
15+
runs-on: ubuntu-latest
16+
permissions:
17+
id-token: write # This is required for requesting the OIDC JWT Token
18+
contents: read # Required when GH token is used to authenticate with private repo
19+
20+
steps:
21+
- name: Checkout to the branch
22+
uses: actions/checkout@v2
23+
24+
- name: Azure Login
25+
uses: azure/login@v1
26+
with:
27+
client-id: ${{ secrets.APP_CLIENT_ID }}
28+
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
29+
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
30+
31+
# TODO: add dotnet test step
32+
33+
- name: Build and Deploy
34+
uses: azure/container-apps-deploy-action@v2
35+
with:
36+
appSourcePath: ${{ github.workspace }}
37+
dockerfilePath: ./src/Plurish.Game.Api/Dockerfile
38+
registryUrl: devplurish.azurecr.io
39+
registryUsername: ${{ secrets.REGISTRY_USERNAME }}
40+
registryPassword: ${{ secrets.REGISTRY_PASSWORD }}
41+
containerAppName: dev-capp-api-game
42+
resourceGroup: dev-rg-plurish
43+
imageToBuild: devplurish.azurecr.io/api/game:${{ github.sha }}
44+
targetPort: 8080
45+
_buildArgumentsKey_: |
46+
_buildArgumentsValues_
47+
48+
# TODO: add hml stage

0 commit comments

Comments
 (0)