Compare commits

...

12 Commits

Author SHA1 Message Date
Oleg Kalachev
0759a10973 Echo commands in install software script 2021-06-22 21:56:46 +03:00
Oleg Kalachev
e491ca6e18 Echo commands in build script 2021-06-22 21:55:39 +03:00
Oleg Kalachev
15b685ca06 Make build script work on mac and linux 2021-06-22 21:54:47 +03:00
Oleg Kalachev
09551d89e3 Use packer for darwin 2021-06-22 20:17:17 +03:00
Oleg Kalachev
ae652f0d1c Try macos-10.15 2021-06-22 20:14:55 +03:00
Oleg Kalachev
2b5548fe7f Try Ubuntu Bionic 2021-06-22 19:10:44 +03:00
Oleg Kalachev
969ed1dbdc Use apt-get not apt 2021-06-22 19:06:10 +03:00
Oleg Kalachev
fc4b87bb64 Ubuntu 20.04 2021-06-22 19:02:51 +03:00
Oleg Kalachev
5fbcca0fa3 Simplify script 2021-06-22 19:00:03 +03:00
Oleg Kalachev
aaadd0f72e Fix 2021-06-22 18:59:25 +03:00
Oleg Kalachev
b3faab68e1 Echo commands 2021-06-22 18:52:07 +03:00
Oleg Kalachev
93d75e8a02 Add GitHub actions workflow 2021-06-22 18:20:59 +03:00
3 changed files with 32 additions and 5 deletions

22
.github/workflows/main.yml vendored Normal file
View 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

View File

@@ -1,6 +1,6 @@
#!/bin/bash
set -e
set -ex
# FIXME: Use system Packer if possible
#PACKER=$(which packer)
@@ -9,9 +9,14 @@ set -e
PACKER="./packer"
if [ ! -f ${PACKER} ]; then
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
unzip packer_1.5.4_linux_amd64.zip
rm packer_1.5.4_linux_amd64.zip
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
OS=linux
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
echo "--- Using Packer version $(${PACKER} --version)"

View File

@@ -1,6 +1,6 @@
#!/usr/bin/env bash
set -e
set -ex
echo "--- Current environment:"
/usr/bin/env