Skip to content

Commit

Permalink
Changed cicd to target linux function
Browse files Browse the repository at this point in the history
  • Loading branch information
madebygps committed Nov 19, 2023
1 parent f9a3dd2 commit c231b06
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 67 deletions.
46 changes: 0 additions & 46 deletions .github/workflows/api.main.yml

This file was deleted.

25 changes: 5 additions & 20 deletions .github/workflows/linuxapi.main.yml → .github/workflows/api.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,11 @@
# This workflow will build a .NET Core project and deploy it to an Azure Functions App on Windows or Linux when a commit is pushed to your default branch.
#
# This workflow assumes you have already created the target Azure Functions app.
# For instructions see https://learn.microsoft.com/en-us/azure/azure-functions/create-first-function-vs-code-csharp?tabs=in-process
#
# To configure this workflow:
# 1. Set up the following secrets in your repository:
# - AZURE_FUNCTIONAPP_PUBLISH_PROFILE
# 2. Change env variables for your configuration.
#
# For more information on:
# - GitHub Actions for Azure: https://github.com/Azure/Actions
# - Azure Functions Action: https://github.com/Azure/functions-action
# - Publish Profile: https://github.com/Azure/functions-action#using-publish-profile-as-deployment-credential-recommended
# - Azure Service Principal for RBAC: https://github.com/Azure/functions-action#using-azure-service-principal-for-rbac-as-deployment-credential
#
# For more samples to get started with GitHub Action workflows to deploy to Azure: https://github.com/Azure/actions-workflow-samples/tree/master/FunctionApp

name: Deploy DotNet project to Azure Function App
name: deploy_api

on:
workflow_dispatch:
push:
branches: ["main"]
branches: [ main ]
paths:
- 'api/**'

env:
AZURE_FUNCTIONAPP_NAME: 'AzureResumeVisitorCounter' # set this to your function app name on Azure
Expand Down
2 changes: 1 addition & 1 deletion frontend/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ window.addEventListener('DOMContentLoaded', (event) =>{
getVisitCount();
})

const productionApiUrl = 'https://getvisitorcounter.azurewebsites.net/api/GetVisitorCounter';
const productionApiUrl = 'https://azureresumevisitorcounter.azurewebsites.net/api/GetVisitorCounter?';
const localApiUrl = 'http://localhost:7071/api/GetVisitorCounter';

const getVisitCount = () => {
Expand Down

0 comments on commit c231b06

Please sign in to comment.