mirror of
https://github.com/CopterExpress/clover_vm.git
synced 2026-06-02 10:09:32 +00:00
Compare commits
12 Commits
v1.3-alpha
...
actions
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0759a10973 | ||
|
|
e491ca6e18 | ||
|
|
15b685ca06 | ||
|
|
09551d89e3 | ||
|
|
ae652f0d1c | ||
|
|
2b5548fe7f | ||
|
|
969ed1dbdc | ||
|
|
fc4b87bb64 | ||
|
|
5fbcca0fa3 | ||
|
|
aaadd0f72e | ||
|
|
b3faab68e1 | ||
|
|
93d75e8a02 |
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
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Setup
|
||||||
|
run: |
|
||||||
|
set -x
|
||||||
|
mkdir output-virtualbox-iso
|
||||||
|
pushd output-virtualbox-iso
|
||||||
|
wget --progress=dot:giga https://github.com/sfalexrog/clever_vm/releases/download/v0.1_base_vm/clover-devel.ova
|
||||||
|
popd
|
||||||
|
- name: Build
|
||||||
|
run: ./build.sh
|
||||||
13
build.sh
13
build.sh
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -e
|
set -ex
|
||||||
|
|
||||||
# FIXME: Use system Packer if possible
|
# FIXME: Use system Packer if possible
|
||||||
#PACKER=$(which packer)
|
#PACKER=$(which packer)
|
||||||
@@ -9,9 +9,14 @@ set -e
|
|||||||
PACKER="./packer"
|
PACKER="./packer"
|
||||||
if [ ! -f ${PACKER} ]; then
|
if [ ! -f ${PACKER} ]; then
|
||||||
echo "Packer not found; downloading v1.5.4 from Hashicorp"
|
echo "Packer not found; downloading v1.5.4 from Hashicorp"
|
||||||
wget --progress=dot:giga https://releases.hashicorp.com/packer/1.5.4/packer_1.5.4_linux_amd64.zip
|
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
|
||||||
unzip packer_1.5.4_linux_amd64.zip
|
OS=linux
|
||||||
rm packer_1.5.4_linux_amd64.zip
|
elif [[ "$OSTYPE" == "darwin"* ]]; then
|
||||||
|
OS=darwin
|
||||||
|
fi
|
||||||
|
wget --progress=dot:giga https://releases.hashicorp.com/packer/1.5.4/packer_1.5.4_${OS}_amd64.zip
|
||||||
|
unzip packer_1.5.4_${OS}_amd64.zip
|
||||||
|
rm packer_1.5.4_${OS}_amd64.zip
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "--- Using Packer version $(${PACKER} --version)"
|
echo "--- Using Packer version $(${PACKER} --version)"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -e
|
set -ex
|
||||||
|
|
||||||
echo "--- Current environment:"
|
echo "--- Current environment:"
|
||||||
/usr/bin/env
|
/usr/bin/env
|
||||||
|
|||||||
Reference in New Issue
Block a user