Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Update server-deploy.yml #22

Update server-deploy.yml

Update server-deploy.yml #22

Workflow file for this run

name: If push to the main, deploy it
on:
push:
branches:
- main
# paths:
# - "canbus-server/**"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Log in to Azure
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
- name: Build and deploy Container App
uses: azure/container-apps-deploy-action@v0
with:
appSourcePath: ${{ github.workspace }}/canbus-server
acrName: woowasiblings
acrUsername: ${{ secrets.ACR_USERNAME }}
acrPassword: ${{ secrets.ACR_PASSWORD }}
containerAppName: canbus-server
containerAppEnvironment: canbus-server-env
resourceGroup: rg-2024-Woowa-Siblings
imageToBuild: woowasiblings.azurecr.io/canbus-server:${{ github.sha }}
dockerfilePath: Dockerfile
targetPort: 8080
allowInsecure: true