Skip to content

Commit

Permalink
Update build-base-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
hanxi authored Oct 30, 2024
1 parent 655f0f9 commit bd41735
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build-base-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:
build-image:
runs-on: ubuntu-latest
if: github.event_name != 'pull_request'
strategy:
matrix:
platform: [linux/amd64, linux/arm64, linux/arm/v7]
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
Expand All @@ -30,14 +33,14 @@ jobs:
with:
context: .
file: ./Dockerfile.runtime
platforms: linux/amd64,linux/arm64,linux/arm/v7
platforms: ${{ matrix.platform }}
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/xiaomusic:${{ github.ref_name }}, ${{ secrets.DOCKERHUB_USERNAME }}/xiaomusic:runtime
- name: Build and push builder
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile.builder
platforms: linux/amd64,linux/arm64,linux/arm/v7
platforms: ${{ matrix.platform }}
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/xiaomusic:${{ github.ref_name }}, ${{ secrets.DOCKERHUB_USERNAME }}/xiaomusic:builder

0 comments on commit bd41735

Please sign in to comment.