-
Notifications
You must be signed in to change notification settings - Fork 12
36 lines (31 loc) · 1.04 KB
/
docker-image.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
name: Multiarch Build
on:
workflow_dispatch:
release:
types: [published]
# push:
# branches: [ master ]
# paths:
# - 'src/build/**'
# pull_request:
# branches: [ master ]
# paths:
# - './.env'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# setup Docker buildx action
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
- name: Setup buildx
run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes && docker buildx create --name builder --driver docker-container --use && docker buildx inspect --bootstrap
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build the Docker image
run: docker buildx build --platform linux/amd64,linux/386,linux/arm64,linux/arm/v7 --push --tag=unzel/rutorrent-filemanager:$(basename ${GITHUB_REF}) --tag=unzel/rutorrent-filemanager:latest ./