Skip to content

Commit 8c5dc3b

Browse files
committed
Merge branch v2.3 into v2.4
2 parents 0dae829 + afa0532 commit 8c5dc3b

File tree

2 files changed

+47
-9
lines changed

2 files changed

+47
-9
lines changed

.github/workflows/documentation.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Build and Publish Documentation
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- v*
8+
9+
jobs:
10+
11+
docs:
12+
name: Doc Process
13+
runs-on: ubuntu-latest
14+
if: github.repository == 'traefik/traefik'
15+
env:
16+
STRUCTOR_VERSION: v1.11.2
17+
MIXTUS_VERSION: v0.4.1
18+
19+
steps:
20+
21+
- name: Check out code
22+
uses: actions/checkout@v2
23+
with:
24+
fetch-depth: 0
25+
26+
- name: Login to DockerHub
27+
uses: docker/login-action@v1
28+
with:
29+
username: ${{ secrets.DOCKERHUB_USERNAME }}
30+
password: ${{ secrets.DOCKERHUB_TOKEN }}
31+
32+
- name: Install Structor ${{ env.STRUCTOR_VERSION }}
33+
run: curl -sSfL https://raw.githubusercontent.com/traefik/structor/master/godownloader.sh | sh -s -- -b $HOME/bin ${STRUCTOR_VERSION}
34+
35+
- name: Install Mixtus ${{ env.MIXTUS_VERSION }}
36+
run: curl -sSfL https://raw.githubusercontent.com/traefik/mixtus/master/godownloader.sh | sh -s -- -b $HOME/bin ${MIXTUS_VERSION}
37+
38+
- name: Build documentation
39+
run: $HOME/bin/structor -o traefik -r traefik --dockerfile-url="https://raw.githubusercontent.com/traefik/traefik/v1.7/docs.Dockerfile" --menu.js-url="https://raw.githubusercontent.com/traefik/structor/master/traefik-menu.js.gotmpl" --rqts-url="https://raw.githubusercontent.com/traefik/structor/master/requirements-override.txt" --force-edit-url --exp-branch=master --debug
40+
env:
41+
STRUCTOR_LATEST_TAG: ${{ secrets.STRUCTOR_LATEST_TAG }}
42+
43+
- name: Publish documentation
44+
run: $HOME/bin/mixtus --dst-doc-path="./traefik" --dst-owner=traefik --dst-repo-name=doc --git-user-email="[email protected]" --git-user-name=traefiker --src-doc-path="./site" --src-owner=containous --src-repo-name=traefik
45+
env:
46+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN_REPO }}

.travis.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ before_deploy:
3030
if [ "$TRAVIS_TAG" ]; then
3131
make release-packages;
3232
fi;
33-
curl -sfL https://raw.githubusercontent.com/traefik/structor/master/godownloader.sh | bash -s -- -b "${GOPATH}/bin" ${STRUCTOR_VERSION}
34-
curl -sSfL https://raw.githubusercontent.com/traefik/mixtus/master/godownloader.sh | sh -s -- -b "${GOPATH}/bin" ${MIXTUS_VERSION}
35-
structor -o traefik -r traefik --dockerfile-url="https://raw.githubusercontent.com/traefik/traefik/v1.7/docs.Dockerfile" --menu.js-url="https://raw.githubusercontent.com/traefik/structor/master/traefik-menu.js.gotmpl" --rqts-url="https://raw.githubusercontent.com/traefik/structor/master/requirements-override.txt" --force-edit-url --exp-branch=master --debug;
3633
fi
3734
3835
deploy:
@@ -50,9 +47,4 @@ deploy:
5047
on:
5148
repo: traefik/traefik
5249
tags: true
53-
- provider: script
54-
script: mixtus --dst-doc-path="./traefik" --dst-owner=traefik --dst-repo-name=doc --git-user-email="[email protected]" --git-user-name=traefiker --src-doc-path="./site" --src-owner=containous --src-repo-name=traefik
55-
skip_cleanup: true
56-
on:
57-
repo: traefik/traefik
58-
all_branches: true
50+

0 commit comments

Comments
 (0)