-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (36 loc) · 1.04 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: latest
on:
push:
paths:
- .github/workflows/latest.yml
- "*Dockerfile"
workflow_dispatch:
env:
DOCKER_BASE_NAME: ghcr.io/vivid-lapin/epgstation
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Setup QEMU user-mode emulation
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build & Push (rpi-armv7)
uses: docker/build-push-action@v2
env:
DOCKER_BUILDKIT: 1
with:
push: true
file: rpi-armv7.Dockerfile
platforms: linux/arm/v7
tags: ${{ env.DOCKER_BASE_NAME }}:rpi-armv7
cache-from: ${{ env.DOCKER_BASE_NAME }}:rpi-armv7
build-args: BUILDKIT_INLINE_CACHE=1