Merge pull request #186 from travisghansen/next #126
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
tags: | |
- "v*" | |
branches: | |
- master | |
- next | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cancel Previous Runs | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ github.token }} | |
- uses: actions/checkout@v2 | |
- name: docker build | |
run: | | |
export ARCH=$([ $(uname -m) = "x86_64" ] && echo "amd64" || echo "arm64") | |
mkdir -p ~/.docker/cli-plugins/ | |
wget -qO ~/.docker/cli-plugins/docker-buildx https://github.com/docker/buildx/releases/download/v0.8.2/buildx-v0.8.2.linux-${ARCH} | |
chmod a+x ~/.docker/cli-plugins/docker-buildx | |
docker info | |
docker buildx version | |
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes | |
docker buildx create --name xbuilder --use | |
docker buildx inspect --bootstrap | |
.github/bin/docker-release.sh | |
env: | |
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | |
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} | |
DOCKER_CLI_EXPERIMENTAL: enabled | |
DOCKER_BUILD_PLATFORM: linux/amd64,linux/arm/v7,linux/arm64/v8,linux/s390x,linux/ppc64le |