-
Notifications
You must be signed in to change notification settings - Fork 55
42 lines (42 loc) · 1.11 KB
/
build_appliances.yaml
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
name: Build Appliances
on:
repository_dispatch:
types:
- build
schedule:
- cron: 0 0 * * 0
workflow_dispatch:
jobs:
setup:
runs-on: self-hosted
steps:
- name: Clone Imagefactory
run: |
git clone https://www.github.com/bdunne/imagefactory.git /build/gha/$GITHUB_RUN_ID/imagefactory
build_appliances:
strategy:
max-parallel: 2
matrix:
target:
- azure
- ec2
- gce
- hyperv
- libvirt
- openstack
- ovirt
- vagrant
- vsphere
runs-on: self-hosted
needs: setup
env:
TARGET_PLATFORM: ${{ matrix.target }}
steps:
- uses: actions/checkout@v4
- name: Build appliance images
env:
S3_ACCESS_KEY: ${{ secrets.S3_ACCESS_KEY }}
S3_ENDPOINT: ${{ secrets.S3_ENDPOINT }}
S3_SECRET_KEY: ${{ secrets.S3_SECRET_KEY }}
run: |
ruby scripts/vmbuild.rb --type nightly --reference $GITHUB_REF_NAME --copy-dir $GITHUB_REF_NAME --only $TARGET_PLATFORM --upload --delete | tee -a /build/logs/${GITHUB_REF_NAME}_$(date +'%Y%m%d')_${GITHUB_RUN_ID}.log