Skip to content

Commit

Permalink
feat: add arm64 docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
GiyoMoon committed Nov 16, 2024
1 parent d6f3e88 commit c992d17
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,35 +3,37 @@ name: ci
on:
push:
branches:
- main

jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
-
name: Docker meta
id: meta
uses: docker/metadata-action@v3
uses: docker/metadata-action@v5
with:
images: ghcr.io/witchtrade/frontend
tags: |
type=raw,value={{branch}}-{{sha}}
type=raw,value={{sha}}
flavor: |
latest=${{ endsWith(github.ref, github.event.repository.default_branch) }}
-
name: Login to GitHub Container Registry
uses: docker/login-action@v1
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@v2
uses: docker/build-push-action@v6
with:
push: true
tags: ${{ steps.meta.outputs.tags }}
tags: ${{ steps.meta.outputs.tags }}
platforms: linux/amd64,linux/arm64

0 comments on commit c992d17

Please sign in to comment.