Add docker build action for arm64
All checks were successful
Docker Build and Push (Multi-architecture) / build-and-push (push) Successful in 17m1s
All checks were successful
Docker Build and Push (Multi-architecture) / build-and-push (push) Successful in 17m1s
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
name: Docker Build and Push
|
||||
name: Docker Build and Push (Multi-architecture)
|
||||
|
||||
on: [push]
|
||||
|
||||
@@ -9,8 +9,15 @@ jobs:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v2
|
||||
with:
|
||||
platforms: arm64
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
with:
|
||||
platforms: linux/amd64,linux/arm64
|
||||
|
||||
- name: Log in to registry
|
||||
uses: docker/login-action@v2
|
||||
@@ -19,10 +26,11 @@ jobs:
|
||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||
password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||
|
||||
- name: Build and push
|
||||
- name: Build and push multi-arch image
|
||||
uses: docker/build-push-action@v4
|
||||
with:
|
||||
context: .
|
||||
platforms: linux/amd64,linux/arm64
|
||||
push: true
|
||||
tags: |
|
||||
${{ vars.REGISTRY }}/${{ vars.IMAGE_NAME }}:latest
|
Reference in New Issue
Block a user