Skip to content

Commit

Permalink
[DNM, WIP] ci: migrate .drone.yml to github build action
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Serong <[email protected]>
  • Loading branch information
tserong committed May 10, 2024
1 parent c8ffa53 commit fe41052
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
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: registry.suse.com/bci/golang:1.21
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Run CI
run: scripts/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

0 comments on commit fe41052

Please sign in to comment.