...
 
Commits (4)
# TODO: change to alpinelinux/docker-cli
image: kdaudt/docker-cli:add-auxilary-scripts
stages:
- build
- upload
build:
stage: build
tags:
- docker-alpine
- x86_64
script:
- docker build -t $CI_PROJECT_NAME:latest .
upload:
stage: upload
before_script:
- docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
only:
- master
script:
- docker-push-image $CI_PROJECT_NAME:latest $DOCKER_NAMESPACE/$CI_PROJECT_NAME:latest
FROM alpine:edge
RUN apk add --no-cache abuild atools spdx-licenses-list shellcheck \
&& adduser -D lint
COPY overlay/ /
USER lint
#!/bin/sh
shellcheck -s ash \
-e SC2016 \
-e SC2086 \
-e SC2169 \
-e SC2155 \
-e SC2100 \
-e SC2209 \
-e SC2030 \
-e SC2031 \
-e SC1090 \
-xa /usr/share/abuild/APKBUILD_SHIM
#!/bin/sh
basebranch=$1
if ! git rev-parse --verify --quiet $basebranch >/dev/null; then
# The base branch does not eixst, probably due to a shallow clone
git fetch origin refs/heads/$basebranch:refs/heads/$basebranch
fi
git diff --diff-filter=ACMR --name-only $baebranch...HEAD -- "*/APKBUILD"
#!/bin/sh
set -e
arch=
builddir=
checkdepends=
depends=
depends_dev=
install=
install_if=
ldpath=
license=
makedepends=
md5sums=
options=
pkgdesc=
pkgdir=$PWD/pkg
pkgname=
pkgrel=
pkgver=
pkggroups=
pkgusers=
provides=
replaces=
sha256sums=
sha512sums=
sonameprefix=
source=
srcdir=$PWD/src
startdir=
subpackages=
subpkgdir=
subpkgname=
url=
. ./APKBUILD
: "$arch"
: "$builddir"
: "$checkdepends"
: "$depends"
: "$depends_dev"
: "$install"
: "$install_if"
: "$ldpath"
: "$license"
: "$makedepends"
: "$md5sums"
: "$options"
: "$pkgdesc"
: "$pkgdir"
: "$pkgname"
: "$pkgrel"
: "$pkgver"
: "$pkggroups"
: "$pkgusers"
: "$provides"
: "$replaces"
: "$sha256sums"
: "$sha512sums"
: "$sonameprefix"
: "$source"
: "$srcdir"
: "$startdir"
: "$subpackages"
: "$subpkgdir"
: "$subpkgname"
: "$url"