chore: move to gh actions #5
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: default | |
"on": | |
push: | |
branches: | |
- main | |
tags: | |
- v* | |
pull_request: {} | |
env: | |
CI_ARGS: --cache-from=type=registry,ref=registry.dev.siderolabs.io/${GITHUB_REPOSITORY}:buildcache --cache-to=type=registry,ref=registry.dev.siderolabs.io/${GITHUB_REPOSITORY}:buildcache,mode=max | |
jobs: | |
default: | |
permissions: | |
packages: write | |
runs-on: | |
- self-hosted | |
- X64 | |
if: ${{ !startsWith(github.head_ref, 'renovate/') || !startsWith(github.head_ref, 'renovate/') }} | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
- name: Unshallow | |
run: | | |
git fetch --prune --unshallow | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
with: | |
config-inline: | | |
[worker.oci] | |
gc = true | |
gckeepstorage = 100000 # 100 GiB | |
[[worker.oci.gcpolicy]] | |
keepBytes = 32212254720 # 30 GiB | |
keepDuration = 604800 | |
filters = [ "type==source.local", "type==exec.cachemount", "type==source.git.checkout"] | |
[[worker.oci.gcpolicy]] | |
all = true | |
keepBytes = 107374182400 # 100 GiB | |
- name: build | |
run: | | |
make PLATFORM=linux/amd64 |