Skip to content
This repository has been archived by the owner on Jun 28, 2023. It is now read-only.

Update workfiows multiarch #191

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .github/workflows/workflow-docker-multiarch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Publication Docker image multiarch arm64 v7/arm v6/arm amd64
on:
push:
branches: [main]
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Login Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@master
with:
platforms: all
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v1
id: buildx
- name: Cache Docker Image Layers
uses: actions/cache@v2
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Build and Push Docker Image
uses: docker/build-push-action@v2
id: docker_build
with:
context: ./
file: ./Dockerfile
builder: ${{ steps.buildx.outputs.name }}
platforms: linux/386, linux/amd64, linux/arm/v6, linux/arm/v7, linux/arm64
push: true
tags: ${{ secrets.DOCKER_USERNAME }}/arch-rtorrentvpn
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
- name: Verify
run: echo ${{ steps.docker_build.outputs.digest }}