2020-10-05 22:49:52 +02:00
|
|
|
name: Build aarch64
|
2020-10-04 20:41:58 +02:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2020-11-29 21:42:26 +01:00
|
|
|
paths:
|
|
|
|
- ".github/workflows/build-aarch64.yml"
|
2020-11-30 02:11:50 +01:00
|
|
|
- "Dockerfile.aarch64"
|
2020-10-04 20:41:58 +02:00
|
|
|
pull_request:
|
|
|
|
paths-ignore:
|
2020-11-29 21:42:26 +01:00
|
|
|
- "README.md"
|
2020-10-04 20:41:58 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2020-11-29 21:42:26 +01:00
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
|
2020-10-04 20:41:58 +02:00
|
|
|
steps:
|
2020-11-29 21:42:26 +01:00
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Set up QEMU
|
|
|
|
uses: docker/setup-qemu-action@v1
|
|
|
|
|
|
|
|
- name: Set up Docker Buildx
|
|
|
|
uses: docker/setup-buildx-action@v1
|
|
|
|
with:
|
|
|
|
install: true
|
|
|
|
version: latest
|
|
|
|
driver-opts: image=moby/buildkit:master
|
|
|
|
|
|
|
|
- name: Login to DockerHub
|
|
|
|
uses: docker/login-action@v1
|
|
|
|
with:
|
|
|
|
username: roxedus
|
|
|
|
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
|
2020-10-05 22:49:52 +02:00
|
|
|
|
2020-11-29 21:42:26 +01:00
|
|
|
- name: Build and push
|
|
|
|
uses: docker/build-push-action@v2
|
|
|
|
with:
|
|
|
|
push: true
|
|
|
|
platforms: linux/arm64
|
|
|
|
file: ./Dockerfile.aarch64
|
|
|
|
tags: |
|
|
|
|
roxedus/playground:hass-aarch64
|