Browse Source

Workflow syntax

master
Mayank 5 years ago
parent
commit
31404f2f97
No known key found for this signature in database GPG Key ID: D037D60476CE748C
  1. 42
      .github/workflows/on-push.yml

42
.github/workflows/on-push.yml

@ -15,40 +15,40 @@ jobs:
- uses: actions/checkout@v1
- name: Run Apt-get update
run: sudo apt-get update
run: sudo apt-get update
- name: Install dependencies
run: sudo apt-get -y install quilt qemu-user-static debootstrap bsdtar
run: sudo apt-get -y install quilt qemu-user-static debootstrap bsdtar
- name: Nuke current Docker installation
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
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
- name: Re-install Docker
run: |
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
docker --version
run: |
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
docker --version
- name: Enable experimental features in Docker
run: |
sudo rm -rf /etc/docker/daemon.json
echo '{"experimental": true}' | sudo tee -a /etc/docker/daemon.json
sudo systemctl restart docker
run: |
sudo rm -rf /etc/docker/daemon.json
echo '{"experimental": true}' | sudo tee -a /etc/docker/daemon.json
sudo systemctl restart docker
- name: Run build script
run: sudo ./build.sh
run: sudo ./build.sh
- name: Copy ZIP to current working dir
run: cp deploy/*.zip ./
run: cp deploy/*.zip ./
- name: Debug current working dir
run: ls -la
run: ls -la
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: umbr3l-lite.zip
path: ./umbr3l-lite.zip
uses: actions/upload-artifact@v2
with:
name: umbr3l-lite.zip
path: ./umbr3l-lite.zip
Loading…
Cancel
Save