-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (49 loc) · 1.33 KB
/
main.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
on:
push:
branches:
- main
jobs:
job1:
runs-on: ubuntu-latest
steps:
- name: Job 1
id: job1
uses: jeff-vincent/orka-actions-up@main
with:
orkaUser: ${{ secrets.ORKA_USER }}
orkaPass: ${{ secrets.ORKA_PASS }}
orkaBaseImage: gha_bigsur_v3.img
githubPat: ${{ secrets.GH_PAT }}
vpnUser: ${{ secrets.VPN_USER }}
vpnPassword: ${{ secrets.VPN_PASSWORD }}
vpnAddress: ${{ secrets.VPN_ADDRESS }}
vpnServerCert: ${{ secrets.VPN_SERVER_CERT }}
vcpuCount: 6
coreCount: 6
outputs:
vm-name: ${{ steps.job1.outputs.vm-name }}
job2:
needs: job1
runs-on: [self-hosted, "${{ needs.job1.outputs.vm-name }}"]
steps:
- name: Job 2
id: job2
run: |
sw_vers
job3:
if: always()
needs: [job1, job2]
runs-on: ubuntu-latest
steps:
- name: Job 3
id: job3
uses: jeff-vincent/[email protected]
with:
orkaUser: ${{ secrets.ORKA_USER }}
orkaPass: ${{ secrets.ORKA_PASS }}
githubPat: ${{ secrets.GH_PAT }}
vpnUser: ${{ secrets.VPN_USER }}
vpnPassword: ${{ secrets.VPN_PASSWORD }}
vpnAddress: ${{ secrets.VPN_ADDRESS }}
vpnServerCert: ${{ secrets.VPN_SERVER_CERT }}
vmName: ${{ needs.job1.outputs.vm-name }}