Fix Docker publication in Travis.
parent
b89f63e9c1
commit
32820518cf
10
.travis.yml
10
.travis.yml
|
@ -20,9 +20,6 @@ addons:
|
||||||
- google-chrome-stable
|
- google-chrome-stable
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- go mod download
|
|
||||||
|
|
||||||
before_script:
|
|
||||||
- export PATH=./cmd/authelia-scripts/:/tmp:$PATH
|
- export PATH=./cmd/authelia-scripts/:/tmp:$PATH
|
||||||
- source bootstrap.sh
|
- source bootstrap.sh
|
||||||
|
|
||||||
|
@ -32,6 +29,7 @@ jobs:
|
||||||
before_script:
|
before_script:
|
||||||
- curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
|
- curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
|
||||||
- nvm install v12 && nvm use v12
|
- nvm install v12 && nvm use v12
|
||||||
|
- go mod download
|
||||||
script:
|
script:
|
||||||
- authelia-scripts --log-level debug ci
|
- authelia-scripts --log-level debug ci
|
||||||
|
|
||||||
|
@ -42,12 +40,16 @@ jobs:
|
||||||
- SUITE_NAME=BypassAll
|
- SUITE_NAME=BypassAll
|
||||||
before_script:
|
before_script:
|
||||||
# Install chrome driver
|
# Install chrome driver
|
||||||
|
# TODO(c.michaud): this could be done in authelia-scripts instead for devs to not do the install themselves.
|
||||||
|
# or even provide a docker image with a selenium server.
|
||||||
- wget -N https://chromedriver.storage.googleapis.com/78.0.3904.70/chromedriver_linux64.zip -P ~/
|
- wget -N https://chromedriver.storage.googleapis.com/78.0.3904.70/chromedriver_linux64.zip -P ~/
|
||||||
- unzip ~/chromedriver_linux64.zip -d ~/
|
- unzip ~/chromedriver_linux64.zip -d ~/
|
||||||
- rm ~/chromedriver_linux64.zip
|
- rm ~/chromedriver_linux64.zip
|
||||||
- sudo mv -f ~/chromedriver /usr/local/share/
|
- sudo mv -f ~/chromedriver /usr/local/share/
|
||||||
- sudo chmod +x /usr/local/share/chromedriver
|
- sudo chmod +x /usr/local/share/chromedriver
|
||||||
- sudo ln -s /usr/local/share/chromedriver /usr/bin/chromedriver
|
- sudo ln -s /usr/local/share/chromedriver /usr/bin/chromedriver
|
||||||
|
|
||||||
|
- go mod download
|
||||||
script:
|
script:
|
||||||
# Run the suite
|
# Run the suite
|
||||||
- CI=true authelia-scripts --log-level debug suites test $SUITE_NAME --headless
|
- CI=true authelia-scripts --log-level debug suites test $SUITE_NAME --headless
|
||||||
|
@ -90,7 +92,6 @@ jobs:
|
||||||
stage: build images
|
stage: build images
|
||||||
env:
|
env:
|
||||||
- ARCH=amd64
|
- ARCH=amd64
|
||||||
install: skip
|
|
||||||
script:
|
script:
|
||||||
- while sleep 9m; do echo '===== Prevent build from terminating ====='; done &
|
- while sleep 9m; do echo '===== Prevent build from terminating ====='; done &
|
||||||
- authelia-scripts docker build --arch=$ARCH
|
- authelia-scripts docker build --arch=$ARCH
|
||||||
|
@ -119,7 +120,6 @@ jobs:
|
||||||
- stage: deploy manifests
|
- stage: deploy manifests
|
||||||
env:
|
env:
|
||||||
- DOCKER_CLI_EXPERIMENTAL=enabled
|
- DOCKER_CLI_EXPERIMENTAL=enabled
|
||||||
install: skip
|
|
||||||
script:
|
script:
|
||||||
- authelia-scripts docker push-manifest
|
- authelia-scripts docker push-manifest
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue