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

Update server-deploy.yml #31

Update server-deploy.yml

Update server-deploy.yml #31

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: Make Env File
run: |
cd canbus-server
touch .env
echo "${{ secrets.ENV_FILE }}" >> .env
cat .env
ls -a
# - 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
# - name: Azure Container Apps Ingress Setting
# run: az containerapp ingress update --name canbus-server --resource-group rg-2024-Woowa-Siblings --target-port 8080 --allow-insecure