Skip to content

Commit b3c2604

Browse files
committed
add azure workflow with changes
1 parent a5731bf commit b3c2604

2 files changed

Lines changed: 40 additions & 1 deletion

File tree

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: deploy www to aca
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
paths:
7+
- 'apps/www/**'
8+
- 'internal/components/**'
9+
10+
permissions:
11+
id-token: write # needed for OIDC
12+
contents: read
13+
14+
jobs:
15+
deploy:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: az login (oidc)
21+
uses: azure/login@v2
22+
with:
23+
client-id: ${{ secrets.AZURE_CLIENT_ID }}
24+
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
25+
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
26+
27+
- name: build & deploy to container apps
28+
uses: azure/container-apps-deploy-action@v1
29+
with:
30+
resourceGroup: rg-designsystemet-test
31+
containerAppName: www-test-ca-app
32+
containerAppEnvironment: www-test-ca # existing env name
33+
acrName: designsystemetacr
34+
imageToBuild: designsystemetacr.azurecr.io/www:${{ github.sha }}
35+
dockerfilePath: ./Dockerfile
36+
buildArguments: "--target www"
37+
targetPort: 8000
38+
ingress: external
39+
envVars: "PORT=8000,HOST=0.0.0.0"

apps/www/app/root.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export const loader = async ({ params, request }: Route.LoaderArgs) => {
7979

8080
const menu = [
8181
{
82-
name: 'navigation.fundamentals',
82+
name: 'navigation.fundamentals!!!',
8383
href: `/${lang}/fundamentals`,
8484
},
8585
{

0 commit comments

Comments
 (0)