Skip to content

feat(base): grow every managed filesystem, online and on xfs #238

feat(base): grow every managed filesystem, online and on xfs

feat(base): grow every managed filesystem, online and on xfs #238

Workflow file for this run

name: build
on:
push:
workflow_dispatch:
schedule:
- cron: '0 1 * * 0'
env:
PROJECT_NAME: exordos-base
PROJECT_NAME_MINIMAL: exordos-base-minimal
REPO_ENDPOINT_PUT: http://10.20.0.1:8082
jobs:
Build:
runs-on: self-hosted
if : ${{ github.actor != 'dependabot[bot]' }}
strategy:
fail-fast: true
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Build Exordos Core
run: |
set -eux
# Build in all image formats
export GEN_IMG_FORMAT=qcow2,zst
exordos build $(pwd)
# Temporary upload step is done in the build script
VERSION="$(exordos --silent get-version .)"
# Upload the VM images
cd output
upload_image() {
local file=$1
local project=${2:-$PROJECT_NAME}
curl -X PUT --upload-file "$file" \
"${REPO_ENDPOINT_PUT}/${project}/${VERSION}/$file"
}
upload_image exordos-base.qcow2
upload_image exordos-base.raw.zst
upload_image exordos-base-minimal.qcow2 $PROJECT_NAME_MINIMAL
upload_image exordos-base-minimal.raw.zst $PROJECT_NAME_MINIMAL
sha256sum exordos-base.qcow2 >> SHA256SUMS
sha256sum exordos-base.raw.zst >> SHA256SUMS
sha256sum exordos-base-minimal.qcow2 >> SHA256SUMS
sha256sum exordos-base-minimal.raw.zst >> SHA256SUMS
curl -X PUT --upload-file SHA256SUMS \
${REPO_ENDPOINT_PUT}/${PROJECT_NAME}/${VERSION}/SHA256SUMS
curl -X PUT --upload-file SHA256SUMS \
${REPO_ENDPOINT_PUT}/${PROJECT_NAME_MINIMAL}/${VERSION}/SHA256SUMS
if [[ $GITHUB_REF == refs/tags/* ]]; then
upload_latest() {
local file=$1
local project=${2:-$PROJECT_NAME}
curl -X PUT --upload-file "$file" \
"${REPO_ENDPOINT_PUT}/${project}/latest/$file"
}
upload_latest exordos-base.qcow2
upload_latest exordos-base.raw.zst
upload_latest exordos-base-minimal.qcow2 $PROJECT_NAME_MINIMAL
upload_latest exordos-base-minimal.raw.zst $PROJECT_NAME_MINIMAL
upload_latest SHA256SUMS
upload_latest SHA256SUMS $PROJECT_NAME_MINIMAL
fi
cd -