-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
41 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,59 @@ | ||
name: Build Image | ||
name: Build Image ${github.event.inputs.release} | ||
on: | ||
push: | ||
branches: | ||
- devel | ||
- devel | ||
tags: | ||
- testing-v[0-9]+.* | ||
workflow_dispatch: | ||
inputs: | ||
release: | ||
description: 'Release type' | ||
type: choice | ||
required: true | ||
options: | ||
- stable | ||
- release | ||
- testing | ||
- unstable | ||
|
||
env: | ||
VERSION: v0.15.0-${{ github.run_number }} | ||
jobs: | ||
build: | ||
name: "Fetch packages and build repository" | ||
name: "Building Image" | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: 'set release type' | ||
if: github.event.inputs.release != '' | ||
run: | | ||
echo "DIST_TYPE=${github.event.inputs.release}" >> $GITHUB_ENV | ||
- namw: 'set release name from' | ||
if: github.event.inputs.release == '' | ||
run: | | ||
case "$GITHUB_REF_NAME" in | ||
testing-*) | ||
echo "DIST_TYPE=testing" >> $GITHUB_ENV | ||
;; | ||
devel) | ||
echo "DIST_TYPE=unstable" >> $GITHUB_ENV | ||
;; | ||
repo*) | ||
echo "DIST_TYPE=release" >> $GITHUB_ENV | ||
;; | ||
easc | ||
- run: | | ||
sudo apt install \ | ||
debootstrap \ | ||
squashfs-tools \ | ||
xorriso \ | ||
isolinux \ | ||
syslinux-efi \ | ||
grub-pc-bin \ | ||
grub-efi-amd64-bin \ | ||
grub-efi-ia32-bin \ | ||
mtools \ | ||
dosfstools \ | ||
jq \ | ||
rsync \ | ||
docker.io | ||
debootstrap squashfs-tools xorriso isolinux \ | ||
syslinux-efi grub-pc-bin grub-efi-amd64-bin \ | ||
grub-efi-ia32-bin mtools dosfstools \ | ||
jq rsync | ||
- run: | | ||
sudo make root image | ||
BUILD_ARGS="--build-arg APT_REPO=https://gpu-live.cdn.golem.network/${DIST_TYPE}" make root image | ||
- run: | | ||
ks -al work/ | ||
ls -al work/ | ||
ls -alh work/golem-gpu-live-${VERSION}.img | ||
xz -9 work/golem-gpu-live-${VERSION}.img |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Repository | ||
name: Repository Testing | ||
on: | ||
push: | ||
tags: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters