Merge pull request #43 from BenjaminPrice/docker-multi-platform #21
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: Push to Docker Hub | |
on: | |
push: | |
branches: | |
- master | |
tags: | |
- 'v*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Login to docker hub | |
if: success() | |
uses: actions-hub/docker/login@master | |
env: | |
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | |
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Build image | |
if: success() | |
run: docker buildx build --platform linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8,linux/ppc64le,linux/s390x -t direckthit/fvtt-docker:${IMAGE_TAG} . | |
- name: Push to docker registry | |
if: success() | |
uses: actions-hub/docker@master | |
with: | |
args: push direckthit/fvtt-docker:${IMAGE_TAG} |