Skip to content

ci: migrate .drone.yml to github build action #21

ci: migrate .drone.yml to github build action

ci: migrate .drone.yml to github build action #21

Workflow file for this run

name: build
on:
push:
branches:
- master
- v*
pull_request:
#env:
# Fake up DRONE_BRANCH so it's picked up when dapper gets to scripts/version
# This is no good for PRs, because it'll be, e.g. "697/merge", which breaks things
# as the version is used in file paths. Probably fine for master and v* versions
# though...
#DRONE_BRANCH: ${{ github.ref_name }}
jobs:
build-amd64-iso:
name: Build AMD64 ISO
# hdd=50 is somewhat arbitrary here, and seems to give a 77G disk
runs-on: runs-on,runner=4cpu-linux-x64,hdd=50,run-id=${{ github.run_id }}
container:
image: rancher/dapper:v0.5.8
steps:
# Git is not in Dapper container image. Add it manually for dirty check.
- name: Add Git
run: apk add -U git
- name: Check disk space
run: df -h
- name: Checkout code
uses: actions/checkout@v4
- name: Run dapper ci
run: dapper ci
# build-arm64-iso:
# name: Build ARM64 ISO
# runs-on: repo--harvester--harvester-installer--arm64
# container:
# image: rancher/dapper:v0.5.8
# steps:
# # Git is not in Dapper container image. Add it manually for dirty check.
# - name: Add Git
# run: apk add -U git
# - name: Checkout code
# uses: actions/checkout@v4
# - name: Run dapper ci
# run: dapper ci