setup docker build for linux/arm64

This commit is contained in:
Krishan 2022-04-19 12:03:02 +05:30 committed by GitHub
parent 0fc463afb7
commit d6de46b526
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,6 +37,10 @@ jobs:
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v3.0.1 uses: actions/checkout@v3.0.1
- name: Set up QEMU
uses: docker/setup-qemu-action@v1.2.0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1.6.0
- name: Login to Docker Hub - name: Login to Docker Hub
uses: docker/login-action@v1.14.1 uses: docker/login-action@v1.14.1
with: with:
@ -46,11 +50,12 @@ jobs:
id: meta id: meta
uses: docker/metadata-action@v3.7.0 uses: docker/metadata-action@v3.7.0
with: with:
images: ajbura/cinny images: kfiven/cinny
- name: Build and push Docker image - name: Build and push Docker image
uses: docker/build-push-action@v2.10.0 uses: docker/build-push-action@v2.10.0
with: with:
context: . context: .
platforms: linux/amd64,linux/arm64
push: true push: true
tags: ${{ steps.meta.outputs.tags }} tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}