-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DNM, WIP] ci: migrate .drone.yml to github build action
Signed-off-by: Tim Serong <[email protected]>
- Loading branch information
Showing
1 changed file
with
48 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
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: | ||
env: | ||
ARCH: amd64 | ||
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: Do all the stuff that Dockerfile.dapper does | ||
run: | | ||
zypper -n rm container-suseconnect && \ | ||
zypper -n install git curl docker gzip tar wget zstd squashfs xorriso awk jq mtools dosfstools unzip rsync patch | ||
curl -sfL https://github.com/mikefarah/yq/releases/download/v4.21.1/yq_linux_${ARCH} -o /usr/bin/yq && chmod +x /usr/bin/yq | ||
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.57.1 | ||
# Note: this is missinge grub2-mbr, grub2-efi and qemu tools | ||
|
||
- 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 |