chore: remove cross-compilation, very not necessary.

This commit is contained in:
Katie Thornhill 2019-11-20 01:39:01 -05:00
parent ab3203d55b
commit 4f0d1ee316
No known key found for this signature in database
GPG key ID: F76EDC6541A99644

View file

@ -8,28 +8,20 @@ name: Docker Workflow
jobs: jobs:
build_publish: build_publish:
name: Build and Publish name: Build and Push
runs-on: ubuntu-latest runs-on: ubuntu-latest
container:
image: jonoh/docker-buildx-qemu
volumes:
- /var/run/docker.sock:/var/run/docker.sock
env:
DOCKER_CLI_EXPERIMENTAL: enabled
BUILDX: /root/.docker/cli-plugins/docker-buildx
options: --privileged
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
- name: Docker Login - name: Docker Login
run: | run: |
echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
- name: Buildx Setup
- name: Docker Build
run: | run: |
update-binfmts --enable docker build . -t katie/roleypoly:${{ github.sha }}
$BUILDX create --name build --use
$BUILDX inspect --bootstrap - name: Docker Push
- name: Buildx Build run: |
run: | docker push katie/roleypoly:${{ github.sha }}
$BUILDX build --platform linux/arm64,linux/arm/v7,linux/amd64 --pull -t katie/roleypoly:${{ github.sha }} --push .