Skip to content

Commit

Permalink
Merge pull request #401 from Kegbot/mikey/arm-builds
Browse files Browse the repository at this point in the history
Add docker buildx action for arm builds
  • Loading branch information
mik3y authored Apr 26, 2020
2 parents 4168ab9 + a2c25f5 commit f058a75
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
33 changes: 33 additions & 0 deletions .github/workflows/dockerbuildx.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Docker buildx

on:
push:
branches:
- master

jobs:
buildx:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v1
-
name: Set up Docker Buildx
id: buildx
uses: crazy-max/ghaction-docker-buildx@v1
with:
version: latest
-
name: Available platforms
run: echo ${{ steps.buildx.outputs.platforms }}
-
name: Login to DockerHub Registry
run: echo ${{ secrets.DOCKER_HUB_PASSWORD }} | docker login -u ${{ secrets.DOCKER_HUB_USERNAME }} --password-stdin
-
name: Build and push
run: |
docker buildx build \
--platform linux/arm/v7,linux/amd64 \
-t kegbot/server:latest \
--push .
2 changes: 1 addition & 1 deletion .github/workflows/dockerpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ jobs:
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
repository: kegbot/server
tag_with_ref: true
tags: latest
tags: latest-release

0 comments on commit f058a75

Please sign in to comment.