Skip to content

Commit

Permalink
chore: build with docker
Browse files Browse the repository at this point in the history
  • Loading branch information
yinheli committed Jul 22, 2024
1 parent 92e1211 commit 00fd15e
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,22 @@ jobs:
command: build
args: --release --locked --target ${{ matrix.target }}
use-cross: ${{ matrix.os == 'ubuntu-latest' }}

docker_build:
name: Docker build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
with:
platforms: linux/amd64,linux/arm64
- name: Build image
uses: docker/build-push-action@v4
with:
platforms: linux/amd64,linux/arm64
labels: |
org.opencontainers.image.source=https://github.com/${{ github.repository }}
org.opencontainers.image.revision=${{ github.sha }}
tags: |
yinheli/kungfu:latest
yinheli/kungfu:${{ github.ref_name }}

0 comments on commit 00fd15e

Please sign in to comment.