You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.4 KiB

5 years ago
name: Build image on push
on:
push:
branches:
5 years ago
- '*'
5 years ago
jobs:
build:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- name: Run Apt-get update
5 years ago
run: sudo apt-get update
5 years ago
- name: Install dependencies
5 years ago
run: sudo apt-get -y install quilt qemu-user-static debootstrap bsdtar
5 years ago
- name: Nuke current Docker installation
5 years ago
run: |
sudo systemctl stop docker
sudo apt-get purge docker-ce docker-ce-cli containerd.io moby-engine moby-cli
sudo rm -rf /var/lib/docker
5 years ago
- name: Re-install Docker
5 years ago
run: |
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
docker --version
5 years ago
- name: Enable experimental features in Docker
5 years ago
run: |
sudo rm -rf /etc/docker/daemon.json
echo '{"experimental": true}' | sudo tee -a /etc/docker/daemon.json
sudo systemctl restart docker
5 years ago
- name: Run build script
5 years ago
run: sudo ./build.sh
5 years ago
- name: Copy ZIP to current working dir
5 years ago
run: cp deploy/*.zip ./
5 years ago
- name: Debug current working dir
5 years ago
run: ls -la
5 years ago
- name: Upload artifact
5 years ago
uses: actions/upload-artifact@v2
with:
name: umbr3l-lite.zip
path: ./umbr3l-lite.zip