From fe41052e4b4879af2a369906e6362c38ac1308cc Mon Sep 17 00:00:00 2001 From: Tim Serong Date: Wed, 10 Apr 2024 14:47:58 +1000 Subject: [PATCH] [DNM, WIP] ci: migrate .drone.yml to github build action Signed-off-by: Tim Serong --- .github/workflows/build.yml | 38 +++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 000000000..b8f7a9bea --- /dev/null +++ b/.github/workflows/build.yml @@ -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