ci: build test ath79/generic
[openwrt/openwrt.git] / .gitlab-ci.yml
1 include:
2 - remote: https://gitlab.com/ynezz/openwrt-ci/raw/master/openwrt-ci/gitlab/main.yml
3 - remote: https://gitlab.com/ynezz/openwrt-ci/raw/master/openwrt-ci/gitlab/target.yml
4
5 variables:
6 CI_TARGET_BUILD_NEEDS_FEEDS: yep
7 CI_TARGET_BUILD_DOWNLOAD_URL: https://downloads.openwrt.org/releases/21.02.0-rc2/targets
8 CI_TARGET_BUILD_CONFIG_EXTRA: -IB -SDK +BUILD_LOG -PACKAGE_kmod-acx-mac80211
9
10
11 .autoscale:
12 extends: .openwrt-target-build
13 tags:
14 - truecz-hetzner-autoscale
15 artifacts:
16 when: on_failure
17 after_script:
18 - export CI_TARGET_BUILD_TARGET="$(echo $CI_JOB_NAME | sed 's/target build \(.*\) .*/\1/')"
19 - export CI_TARGET_BUILD_SUBTARGET="$(echo $CI_JOB_NAME | sed 's/target build .* \(.*\)/\1/')"
20 - curl https://foo.true.cz/dump/mc > /bin/mcli && chmod +x /bin/mcli
21 - mcli alias set foo "$MINIO_URL" "$MINIO_ACCESS_KEY" "$MINIO_SECRET_KEY"
22 - mcli cp --recursive logs bin "foo/openwrt/staging-builds/$CI_COMMIT_REF_SLUG/$CI_COMMIT_SHORT_SHA/$CI_TARGET_BUILD_TARGET-$CI_TARGET_BUILD_SUBTARGET/"
23
24 target build ath79 generic:
25 extends: .autoscale