From adecc4bc44fda2fa7564d9abce79942d8e56d32c Mon Sep 17 00:00:00 2001 From: Kingkor Roy Tirtho Date: Sat, 20 Apr 2024 11:19:49 +0600 Subject: [PATCH] cd: use docker build --- .github/workflows/spotube-release-binary.yml | 28 +++++--------------- 1 file changed, 6 insertions(+), 22 deletions(-) diff --git a/.github/workflows/spotube-release-binary.yml b/.github/workflows/spotube-release-binary.yml index 381bf40c..c7fcbf44 100644 --- a/.github/workflows/spotube-release-binary.yml +++ b/.github/workflows/spotube-release-binary.yml @@ -249,31 +249,15 @@ jobs: run: | sed -i 's|%{{APPDATA_RELEASE}}%||' linux/com.github.KRTirtho.Spotube.appdata.xml - - name: Build and push (stable) + - name: Build Binaries (stable) if: ${{ inputs.channel == 'stable' }} - uses: docker/build-push-action@v5 - with: - context: . - push: false - platforms: linux/arm64 - file: .github/Dockerfile - tags: krtirtho/spotube_linux_arm:latest - build-args: | - BUILD_VERSION=${{ env.BUILD_VERSION }} - FLUTTER_VERSION=${{ env.FLUTTER_VERSION }} + run: | + docker buildx build --platform=linux/arm64 -f .github/Dockerfile . --build-arg FLUTTER_VERSION=${{env.FLUTTER_VERSION}} --build-arg BUILD_VERSION=${{env.BUILD_VERSION}} -t krtirtho/spotube_linux_arm:latest --load - - name: Build and push (nightly) + - name: Build Binaries (nightly) if: ${{ inputs.channel == 'nightly' }} - uses: docker/build-push-action@v5 - with: - context: . - push: false - platforms: linux/arm64 - file: .github/Dockerfile - tags: krtirtho/spotube_linux_arm:latest - build-args: | - BUILD_VERSION=nighlty - FLUTTER_VERSION=${{ env.FLUTTER_VERSION }} + run: | + docker buildx build --platform=linux/arm64 -f .github/Dockerfile . --build-arg FLUTTER_VERSION=${{env.FLUTTER_VERSION}} --build-arg BUILD_VERSION=nightly -t krtirtho/spotube_linux_arm:latest --load - name: Copy the built packages run: |