Skip to content

Commit

Permalink
Require image for ARM64 architecture
Browse files Browse the repository at this point in the history
Signed-off-by: odidev <odidev@puresoftware.com>
  • Loading branch information
odidev committed Mar 25, 2021
1 parent b94d3c3 commit b4efb5c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
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
- docker run --rm --privileged docker/binfmt:a7996909642ee92942dcd6cff44b9b95f08dad64
- docker buildx create --use --name mybuilder

script:
- docker login -u ${DOCKER_USERNAME} -p ${DOCKER_PASSWORD}
- docker buildx build --platform linux/amd64,linux/arm64 -t odidev/amazon-ecs-sample:latest -t odidev/amazon-ecs-sample:latest --push .;

0 comments on commit b4efb5c

Please sign in to comment.