Skip to content

az-fn-deploy

az-fn-deploy #9

Workflow file for this run

name: az-fn-deploy
on:
workflow_dispatch:
permissions:
id-token: write
contents: read
jobs:
deploy-function:
runs-on: ubuntu-22.04
steps:
- name: checkout backend repo
uses: actions/[email protected]
- name: setup go
uses: actions/[email protected]
with:
architecture: x64
cache-dependency-path: ${{ github.workspace }}/be/go.sum
go-version-file: ${{ github.workspace }}/be/go.mod
- name: go build
run: |
go build -C be/ -o ../az/handler -v ./cmd/api
- name: az deploy
uses: Azure/[email protected]
with:
app-name: sshstats-be-fn
publish-profile: ${{ secrets.AZURE_FN_PUBLISH_PROFILE }}
package: az/