Skip to content

Commit

Permalink
+ tags testing
Browse files Browse the repository at this point in the history
  • Loading branch information
prekucki committed Jun 6, 2024
1 parent b0e8f1c commit 4862281
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 24 deletions.
56 changes: 36 additions & 20 deletions .github/workflows/build.yml
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
4 changes: 2 additions & 2 deletions .github/workflows/repository.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- repo-*

env:
yagna_tag: pre-rel-v0.14.0-rc1
yagna_tag: ^v.*
ya-runtime-wasi_tag: pre-rel-v0.2.4
ya-installer-resources_tag: ^v.*
ya-runtime-vm_tag: ^pre-rel-v0.4.0-ITL-.*
Expand All @@ -31,7 +31,7 @@ jobs:
with:
repo: yagna
pattern: ${{ env.yagna_tag }}
prerelease: true
prerelease: false

- name: "Get deb package: ya-runtime-wasi"
uses: ./.github/actions/fetch-release-deb
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-apt-repo.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Repository
name: Repository Testing
on:
push:
tags:
Expand Down
3 changes: 2 additions & 1 deletion rootfs/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
FROM ubuntu:jammy

ARG DEBIAN_FRONTEND=noninteractive
ARG APT_REPO=https://gpu-live.cdn.golem.network/release

# install ca-certificates before accessing any https repo
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates && apt-get clean

# Add GOLEM's repository
COPY A6FC0686E1EFC16F5D8AAAA6C69F9049D4AC7CD4.asc /etc/apt/trusted.gpg.d/golem.asc
RUN bash -c 'echo deb https://golemfactory.github.io/golem-gpu-live jammy main > /etc/apt/sources.list.d/golem.list'
RUN bash -c "echo deb ${APT_REPO} jammy main > /etc/apt/sources.list.d/golem.list"

# Accept GOLEM terms for install then Wizard will manage it
RUN bash -c 'echo golem golem/terms/subsidy-01 string yes | debconf-set-selections'
Expand Down

0 comments on commit 4862281

Please sign in to comment.