forked from swagger-api/swagger-petstore
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (40 loc) · 1.38 KB
/
build-azure.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: 'Build and Fuzz on Azure'
on:
workflow_dispatch:
jobs:
build-and-deploy:
name: 'Build and Fuzz Tasks'
runs-on: ubuntu-latest
steps:
- name: Checkout code to Runner
uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Build with Maven
run: mvn -B package --file pom.xml
# Setup python since we use RAFT's python CLI'
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: 'Build and push image'
uses: azure/docker-login@v1
with:
login-server: ${{ secrets.REGISTRY_LOGIN_SERVER }}
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- run: |
docker build . -t ${{ secrets.REGISTRY_LOGIN_SERVER }}/petstore:demo
docker push ${{ secrets.REGISTRY_LOGIN_SERVER }}/petstore:demo
# Run the raft command to fuzz locally
- name: Run RAFT within Github Actions Runner
uses: mgreisen/[email protected]
with:
# Mode tells the action we want to run using our raft local script
mode: Azure
raftDefaults: ${{ secrets.RAFT_DEFAULTS }}
secret: ${{ secrets.RAFT_SECRET }}
# The raft cli command arguments.
arguments: "job create --file raft-fuzz/run.json"