Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ before_install:
- sudo apt-get -y install python3-pip python3-setuptools apache2-utils python3-venv
- wget https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.96/linux64/chromedriver-linux64.zip
- unzip chromedriver-linux64.zip -d $HOME/.local/bin
- mkdir -vp ~/.docker/cli-plugins/
- curl --silent -L "https://github.com/docker/buildx/releases/download/v0.11.2/buildx-v0.11.2.linux-amd64" > ~/.docker/cli-plugins/docker-buildx
- chmod a+x ~/.docker/cli-plugins/docker-buildx
install:
- pip3 install -r requirements.txt
- pip3 install pyasn1 --upgrade
Expand Down Expand Up @@ -82,4 +85,4 @@ deploy:
on:
tags: false
all_branches: true
condition: "$TRAVIS_BRANCH =~ ^stable|master$"
condition: "$TRAVIS_BRANCH =~ ^stable|master|test-amd-build$"
8 changes: 5 additions & 3 deletions tools/deploy_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,15 @@ else
DOCKER_TAG="$TRAVIS_BRANCH"
fi

docker run --rm --privileged multiarch/qemu-user-static --reset -p yes

docker login -u "$DOCKER_USER" -p "$DOCKER_PASSWORD"

docker build -f tools/Dockerfile -t "$IMAGE_NAME":"$DOCKER_TAG" .
docker buildx create --use
docker buildx build --platform linux/amd64,linux/arm64 --push -f tools/Dockerfile -t "$IMAGE_NAME":"$DOCKER_TAG" .

echo "NEW_GIT_TAG=$NEW_GIT_TAG"
if [ ! -z "$NEW_GIT_TAG" ]; then
docker tag "$IMAGE_NAME":"$DOCKER_TAG" "$IMAGE_NAME":"$NEW_GIT_TAG"
docker push "$IMAGE_NAME":"$NEW_GIT_TAG"
fi

docker push --all-tags "$IMAGE_NAME"