forked from jdubois/azure-native-spring-function
-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (29 loc) · 921 Bytes
/
build-and-deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: Build and deploy native image
on:
push:
branches:
- master
- dev
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- uses: graalvm/setup-graalvm@v1
with:
version: '22.1.0'
java-version: '17'
components: 'native-image'
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Build native image
run: ./build.sh
- name: Login to Azure
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
- name: 'Deploy to Azure Function'
uses: Azure/functions-action@v1
with:
app-name: ${{ secrets.AZ_FUNCTION_NAME_APP }}
package: target/native_spring_function.zip