Skip to content

Commit

Permalink
Switch to 1cpu-linux-x64 runner
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Serong <[email protected]>
  • Loading branch information
tserong committed May 22, 2024
1 parent edfac50 commit 55e4167
Showing 1 changed file with 8 additions and 25 deletions.
33 changes: 8 additions & 25 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,37 +13,20 @@ on:
#DRONE_BRANCH: ${{ github.ref_name }}
jobs:
build-amd64-iso:
env:
ARCH: amd64
HELM_VERSION: v3.3.1
name: Build AMD64 ISO
runs-on: repo--harvester--harvester-installer--amd64
runs-on: runs-on,runner=1cpu-linux-x64,run-id=${{ github.run_id }}
container:
image: registry.suse.com/bci/golang:1.21
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: Do all the stuff that Dockerfile.dapper does
run: |
zypper -n rm container-suseconnect && \
zypper -n install git curl podman podman-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
mkdir /usr/tmp && \
curl https://get.helm.sh/helm-${HELM_VERSION}-linux-${ARCH}.tar.gz | \
tar xvzf - --strip-components=1 -C /usr/tmp/ && \
mv /usr/tmp/helm /usr/bin/helm
# Note: this is missing grub2-mbr, grub2-efi and qemu tools

- name: Keep git happy
run: git config --global --add safe.directory '*'
# without the above we get:
# fatal: detected dubious ownership in repository at '/__w/harvester-installer/harvester-installer'
# let's not worry about what the directories might be inside the runner and just allow everything

- name: Run CI
run: scripts/ci
- name: Run dapper ci
run: dapper ci

# build-arm64-iso:
# name: Build ARM64 ISO
Expand Down

0 comments on commit 55e4167

Please sign in to comment.