Skip to content

Build Image

Build Image #15

Workflow file for this run

name: Build Image
on:
push:
branches:
- devel
tags:
- testing-v[0-9]+.*
workflow_dispatch:
inputs:
release:
description: 'Release type'
type: choice
required: true
options:
- release
- testing
- unstable
env:
VERSION: v0.15.0-${{ github.run_number }}
jobs:
build:
name: Building Image ${{ github.ref }}
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
- name: set tag release name
if: github.event.inputs.release==null && startsWith(github.ref, 'refs/tags/testing')
run: |
echo "DIST_TYPE=testing" >> $GITHUB_ENV
- 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
- run: |
BUILD_ARGS="--build-arg APT_REPO=https://gpu-live.cdn.golem.network/${DIST_TYPE}" make root image
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: eu-central-1
- run: |
set -x
ls -al work/
ls -alh work/golem-gpu-live-${VERSION}.img
sudo chown $USER work/golem-gpu-live-${VERSION}.img
xz -9 work/golem-gpu-live-${VERSION}.img
aws s3 cp work/golem-gpu-live-${VERSION}.img s3://repo-golem-gpu-live/images/