Skip to content

Commit

Permalink
Merge pull request #78 from whiteducksoftware/update-iac
Browse files Browse the repository at this point in the history
chore: updated template
  • Loading branch information
superdariobroz authored Apr 14, 2021
2 parents 5e93b48 + b6fda68 commit 3ce35e9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,20 @@ jobs:
steps:
- uses: actions/checkout@v1

- uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.1.x'

- run: dotnet publish src/automation/automation.csproj -o release

- uses: actions/upload-artifact@v1
with:
name: automation-function
path: ${{ github.workspace }}/src/automation
path: ${{ github.workspace }}/release

- uses: papeloto/action-zip@v1
with:
files: src/automation
files: release
recursive: true
dest: function.zip

Expand All @@ -31,7 +37,7 @@ jobs:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
prerelease: true

- name: Upload Release Asset
id: upload-release-asset
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/pr-validate.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: validate-PR
on: pull_request
jobs:
validate_bicep_build:
validate_bicep_and_dotnet_build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
Expand All @@ -14,4 +14,8 @@ jobs:
id: armtest
with:
path: src/infrastructure
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.1.x'
- run: dotnet publish src/automation/automation.csproj -o release

2 changes: 1 addition & 1 deletion src/infrastructure/mainTemplate.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ resource function_app 'Microsoft.Web/sites@2020-06-01' = {
}
{
name: 'WEBSITE_RUN_FROM_PACKAGE'
value: '' //todo add URL
value: 'https://github.com/whiteducksoftware/clockodo-automation/releases/latest/download/clockodo-automation.zip' //todo add URL
}
{
name: 'KEYVAULT_NAME'
Expand Down

0 comments on commit 3ce35e9

Please sign in to comment.