Skip to content

Commit

Permalink
Merge pull request #3 from taoky/master
Browse files Browse the repository at this point in the history
Closes #2
  • Loading branch information
iBug authored Feb 1, 2023
2 parents 15d9a75 + 9136d1c commit 9e80ea3
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Image Build CI

on:
workflow_dispatch: {}

jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: docker build -t labstrap .
- name: Get Ubuntu 22.04 base image
run: wget http://download.proxmox.com/images/system/ubuntu-22.04-standard_22.04-1_amd64.tar.zst -O ~/ubuntu22.04.tar.zst
- name: Build it!
run: |
docker run --rm -i --name=labstrap --privileged \
-v "$PWD":/srv:ro \
-v $HOME/rootfs:/target \
-v $HOME/ubuntu22.04.tar.zst:/input.tar.zst:ro \
labstrap
- name: Pack it!
run: |
sudo tar caf output.tar.zst -C $HOME/rootfs .
sha256sum output.tar.zst > output.SHA256
- name: Upload pack to artifact
uses: actions/upload-artifact@v3
with:
name: labstrap-build
path: |
output.tar.zst
output.SHA256

0 comments on commit 9e80ea3

Please sign in to comment.