mirror of
https://github.com/CopterExpress/clover_vm.git
synced 2026-05-30 16:59:32 +00:00
Build image in GitHub Actions
This commit is contained in:
22
.github/workflows/main.yml
vendored
Normal file
22
.github/workflows/main.yml
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
name: Build image
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ '*' ]
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: macos-10.15 # Using macOS as https://github.com/actions/virtual-environments/issues/183
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Download base image
|
||||
run: |
|
||||
mkdir output-virtualbox-iso
|
||||
wget --progress=dot:giga https://clovervm.ams3.digitaloceanspaces.com/base-focal.ova -O output-virtualbox-iso/clover-devel.ova
|
||||
- name: Build
|
||||
run: ./build.sh
|
||||
- name: Upload
|
||||
run: AWS_ACCESS_KEY_ID=${{secrets.S3_KEY}} AWS_SECRET_ACCESS_KEY=${{secrets.S3_SECRET_KEY}} aws s3 sync . s3://clovervm/ --acl public-read --endpoint-url https://ams3.digitaloceanspaces.com --no-progress
|
||||
working-directory: output-virtualbox-ovf
|
||||
Reference in New Issue
Block a user