ci: migrate .drone.yml to github build action #4
Workflow file for this run
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
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 | |
DRONE_BRANCH: ${{ github.ref_name }} | |
jobs: | |
build-amd64-iso: | |
name: Build AMD64 ISO | |
runs-on: repo--harvester--harvester-installer--amd64 | |
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 | |
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 |