Skip to content

github: Switch to arm64 #59

github: Switch to arm64

github: Switch to arm64 #59

name: Autobuild for Docker
on: [push, workflow_dispatch, repository_dispatch]
jobs:
build:
runs-on: self-hosted
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Login to the registry
run: registry-login "${{ secrets.DOCKER_USERNAME }}" "${{ secrets.DOCKER_PASSWORD }}"
- name: Build the image
run: |
buildctl build \
--frontend dockerfile.v0 \
--local context=. \
--local dockerfile=. \
--opt platform=linux/arm64 \
--output type=image,name="${{ secrets.DOCKER_TAG }}",push=true,store=false