mirror of
https://github.com/KRTirtho/spotube.git
synced 2026-05-08 16:24:36 +00:00
cd: use docker buildx
This commit is contained in:
parent
88fea7ecf9
commit
6ce768989e
9
.github/workflows/spotube-release-binary.yml
vendored
9
.github/workflows/spotube-release-binary.yml
vendored
@ -207,12 +207,12 @@ jobs:
|
||||
limit-access-to-actor: true
|
||||
|
||||
linux_arm:
|
||||
runs-on: macos-14
|
||||
runs-on: macos-13
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Install Docker
|
||||
run: brew install --cask docker
|
||||
- name: Setup Docker on macOS
|
||||
uses: douglascamata/setup-docker-macos-action@v1-alpha
|
||||
|
||||
- name: Replace pubspec version and BUILD_VERSION Env (nightly)
|
||||
if: ${{ inputs.channel == 'nightly' }}
|
||||
@ -246,7 +246,8 @@ jobs:
|
||||
|
||||
- name: Build Linux Arm
|
||||
run: |
|
||||
docker build -t spotube-linux-arm -f .github/Dockerfile . --build-arg BUILD_VERSION=${{ env.BUILD_VERSION }} --build-arg FLUTTER_VERSION=${{ env.FLUTTER_VERSION }}
|
||||
docker buildx create --use
|
||||
docker buildx build --platform linux/arm64 -t spotube-linux-arm -f .github/Dockerfile . --build-arg BUILD_VERSION=${{ env.BUILD_VERSION }} --build-arg FLUTTER_VERSION=${{ env.FLUTTER_VERSION }} --load
|
||||
docker create --name spotube-linux-arm spotube-linux-arm
|
||||
docker cp spotube-linux-arm:/app/dist .
|
||||
docker rm -f spotube-linux-arm
|
||||
|
||||
Loading…
Reference in New Issue
Block a user