gitlab-runner.sh 677 Bytes
Newer Older
1 2 3 4
#!/bin/sh

PKGNAME=gitlab-runner
SUPPORTEDARCHES="armhf aarch64 x86 x86_64 ppc64le"
5
VERSION="$2"
6 7 8 9
DESCRIPTION='Gitlab runner'

. $(dirname $0)/common.sh

10 11
arch="$(epm print info -a)"
pkg="$(epm print info -p)"
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
case "$arch" in
    x86_64)
        arch=amd64
        ;;
    aarch64)
        arch=arm64
        ;;
    armhf)
        arch=armhf
        ;;
    x86)
        arch=i686
        [ "$pkg" = "deb" ] && arch=i386
        ;;
esac

# https://docs.gitlab.com/runner/install/linux-manually.html
# https://gitlab-runner-downloads.s3.amazonaws.com/latest/index.html
30 31 32
PKGURL="https://gitlab-runner-downloads.s3.amazonaws.com/latest/$pkg/gitlab-runner_${arch}.$pkg"

install_pkgurl