X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=.gitlab-ci.yml;h=aee2114240ae8008ce950f43d96b265c0769b841;hb=refs%2Fheads%2Fmaster;hp=10f98119fbe3f117b91f93f7b888d91c2dc764fe;hpb=64a43bef32b144ce9894815a92f7083306f7ef1e;p=safcm%2Fsafcm.git diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 10f9811..aee2114 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,14 +1,18 @@ .template-docker: &template-docker before_script: - apt-get update - - apt-get install --no-install-recommends --yes build-essential ca-certificates git golang golang-1.16 golang-golang-x-tools make + - apt-get install --no-install-recommends --yes build-essential ca-certificates git golang golang-golang-x-tools make openssh-server shellcheck script: - # NOTE: golang is still using golang-1.15 - - mkdir -p $HOME/go/bin - - ln -sf /usr/lib/go-1.16/bin/go $HOME/go/bin - - ln -sf /usr/lib/go-1.16/bin/gofmt $HOME/go/bin + # Gitlab-runner uses umask 0000 (wtf?!) and mixes nobody and root user + # when setting up the environment. This breaks ssh's permission check on + # authorized_keys. + - chown -R root:root /builds + - chmod -R go-w /builds # + - mkdir /run/sshd - ./ci/run + # Windows is not really supported, but at least check building works + - PATH=$HOME/go/bin:$PATH make GOOS=windows GOFLAGS= debian-sid: <<: *template-docker