2019-04-24 21:52:08 +00:00
|
|
|
language: go
|
2019-11-07 00:59:24 +00:00
|
|
|
|
2019-03-24 15:37:31 +00:00
|
|
|
required: sudo
|
2019-11-07 00:59:24 +00:00
|
|
|
|
2019-04-24 21:52:08 +00:00
|
|
|
go:
|
2019-11-07 00:59:24 +00:00
|
|
|
- '1.13'
|
|
|
|
|
2016-12-17 20:57:09 +00:00
|
|
|
services:
|
2019-11-07 00:59:24 +00:00
|
|
|
- docker
|
|
|
|
- ntp
|
|
|
|
- xvfb
|
2019-10-29 20:54:47 +00:00
|
|
|
|
2019-04-24 21:52:08 +00:00
|
|
|
before_script:
|
2019-11-07 00:59:24 +00:00
|
|
|
- export PATH=./cmd/authelia-scripts/:/tmp:$PATH
|
2019-10-29 20:54:47 +00:00
|
|
|
|
2019-11-07 00:59:24 +00:00
|
|
|
jobs:
|
|
|
|
include:
|
|
|
|
- stage: test
|
|
|
|
addons:
|
|
|
|
chrome: stable
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- google-chrome
|
|
|
|
packages:
|
|
|
|
- libgif-dev
|
|
|
|
- google-chrome-stable
|
|
|
|
script:
|
|
|
|
- curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
|
|
|
|
- nvm install v11 && nvm use v11 && npm i
|
|
|
|
- source bootstrap.sh
|
|
|
|
- authelia-scripts ci
|
|
|
|
# TODO(c.michaud): publish built artifact on Github.
|
|
|
|
- &build-images
|
|
|
|
stage: build images
|
|
|
|
env:
|
|
|
|
- ARCH=amd64
|
|
|
|
install: skip
|
|
|
|
script:
|
|
|
|
- while sleep 9m; do echo '===== Prevent build from terminating ====='; done &
|
|
|
|
- authelia-scripts docker build --arch=$ARCH
|
|
|
|
- kill %1
|
|
|
|
after_success:
|
|
|
|
- authelia-scripts docker push-image --arch=$ARCH
|
|
|
|
- <<: *build-images
|
|
|
|
env:
|
|
|
|
- ARCH=arm32v7
|
|
|
|
- <<: *build-images
|
|
|
|
env:
|
|
|
|
- ARCH=arm64v8
|
|
|
|
- stage: deploy manifests
|
|
|
|
env:
|
|
|
|
- DOCKER_CLI_EXPERIMENTAL=enabled
|
|
|
|
install: skip
|
|
|
|
script:
|
|
|
|
- authelia-scripts docker push-manifest
|
2019-10-29 20:54:47 +00:00
|
|
|
|
2016-12-17 20:57:09 +00:00
|
|
|
notifications:
|
|
|
|
email:
|
|
|
|
recipients:
|
2019-11-07 00:59:24 +00:00
|
|
|
- clement.michaud34@gmail.com
|
2016-12-17 20:57:09 +00:00
|
|
|
on_success: change
|
|
|
|
on_failure: always
|