mirror of
https://github.com/openfaas/faas.git
synced 2025-06-08 08:25:03 +00:00
This component now lives at: https://github.com/openfaas/classic-watchdog/ Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
40 lines
797 B
YAML
40 lines
797 B
YAML
sudo: required
|
|
|
|
language: go
|
|
go:
|
|
- "1.13.x"
|
|
|
|
services:
|
|
- docker
|
|
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- docker-ce
|
|
|
|
before_install:
|
|
|
|
script:
|
|
- ./build.sh
|
|
- ./contrib/ci.sh
|
|
|
|
after_success:
|
|
- if [ -z $DOCKER_NS ] ; then
|
|
export DOCKER_NS=openfaas;
|
|
fi
|
|
|
|
- if [ ! -z "$TRAVIS_TAG" ] ; then
|
|
export DOCKER_CLI_EXPERIMENTAL=enabled
|
|
|
|
export REGISTRY=docker.io;
|
|
./ci/registryLogin.sh $REGISTRY;
|
|
./ci/tagAndPush.sh "$REGISTRY" "$DOCKER_NS/gateway";
|
|
./ci/tagAndPush.sh "$REGISTRY" "$DOCKER_NS/basic-auth-plugin";
|
|
|
|
export REGISTRY=quay.io;
|
|
./ci/registryLogin.sh $REGISTRY;
|
|
./ci/tagAndPush.sh "$REGISTRY" "$DOCKER_NS/gateway";
|
|
./ci/tagAndPush.sh "$REGISTRY" "$DOCKER_NS/basic-auth-plugin";
|
|
|
|
fi
|