-
Notifications
You must be signed in to change notification settings - Fork 141
/
Copy path.travis.yml
96 lines (84 loc) · 2.54 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
language: go
go:
- 1.14
os: linux
dist: xenial
git:
depth: false
notifications:
email:
on_success: never
on_failure: change
cache:
directories:
- $GOPATH/pkg/mod
jobs:
fast_finish: true
include:
- go: 1.14
env: STABLE=true
env:
global:
- GO111MODULE=on
services:
- docker
script:
- echo "Skipping tests... (Tests are executed on SemaphoreCI)"
- make docs-package
install:
- go mod tidy
- git diff --exit-code go.mod
- git diff --exit-code go.sum
- go mod download
before_deploy:
- >
if ! [ "$BEFORE_DEPLOY_RUN" ]; then
export BEFORE_DEPLOY_RUN=1;
echo "${DOCKER_PASSWORD}" | docker login -u "${DOCKER_USERNAME}" --password-stdin;
curl -sfL https://raw.githubusercontent.com/containous/structor/master/godownloader.sh | bash -s -- -b "${GOPATH}/bin" ${STRUCTOR_VERSION};
structor -o containous -r maesh --dockerfile-url="https://raw.githubusercontent.com/containous/maesh/master/docs/docs.Dockerfile" --menu.js-url="https://raw.githubusercontent.com/containous/structor/master/traefik-menu.js.gotmpl" --rqts-url="https://raw.githubusercontent.com/containous/structor/master/requirements-override.txt" --force-edit-url --exp-branch=master --debug;
fi
# Copy helm packages
- cp -r pages/charts/. site/charts
# Copy CNAME file
- cp pages/CNAME site/CNAME
# Copy Semaphore yml file
- mkdir -p site/.semaphore
- cp ./.semaphore/semaphore.yml site/.semaphore/semaphore.yml
# Install linters
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s -- -b $GOPATH/bin ${GOLANGCI_LINT_VERSION}
- golangci-lint --version
# Install Docker image multi-arch builder
- curl -sfL https://raw.githubusercontent.com/ldez/seihon/master/godownloader.sh | bash -s -- -b "${GOPATH}/bin" ${SEIHON_VERSION}
- seihon --version
- docker run --rm --privileged hypriot/qemu-register
deploy:
- provider: script
skip_cleanup: true
script: curl -sL https://git.io/goreleaser | bash -s -- --timeout="60m"
on:
tags: true
condition: $STABLE = true
- provider: script
skip_cleanup: true
script: make publish-images
on:
tags: true
condition: $STABLE = true
- provider: script
skip_cleanup: true
script: make helm-package
on:
tags: true
condition: $STABLE = true
- provider: pages
strategy: git
edge: false
token: ${GITHUB_TOKEN}
target_branch: gh-pages
local_dir: site
skip_cleanup: true
keep_history: true
on:
repo: containous/maesh
all_branches: true