Skip to content

feat: add arm64 docker build #235

feat: add arm64 docker build

feat: add arm64 docker build #235

Workflow file for this run

name: ci
on:
push:
branches:
- main
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/witchtrade/frontend
tags: |
type=raw,value={{sha}}
flavor: |
latest=${{ endsWith(github.ref, github.event.repository.default_branch) }}
-
name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Build and push
id: docker_build
uses: docker/build-push-action@v6
with:
push: true
tags: ${{ steps.meta.outputs.tags }}
platforms: linux/amd64,linux/arm64