Skip to content

Commit

Permalink
Create .travis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
odidev committed Jan 19, 2021
1 parent 3e28eca commit 3b8f682
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
dist: focal

services:
- docker

before_script:
- mkdir -p ~/.docker/cli-plugins
- wget -O - https://github.com/docker/buildx/releases/download/v0.5.1/buildx-v0.5.1.linux-amd64 > ~/.docker/cli-plugins/docker-buildx
- chmod a+x ~/.docker/cli-plugins/docker-buildx
# enabled binfmt_misc
- docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
- docker buildx create --use --name mybuilder

script:
- if [[ "$TRAVIS_TAG" =~ ^[0-9]+(\.[0-9]+){2}$ ]]; then
docker login -u ${DOCKER_USERNAME} -p ${DOCKER_PASSWORD};
travis_wait 40 docker buildx build --platform linux/amd64,linux/arm64 -t odidev/docker-alpine-curl:$TRAVIS_TAG -t odidev/docker-alpine-curl:latest --push . 2> /dev/null;
fi

0 comments on commit 3b8f682

Please sign in to comment.