Skip to content

Commit

Permalink
cd: use docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
KRTirtho committed Apr 20, 2024
1 parent e7c8adf commit adecc4b
Showing 1 changed file with 7 additions and 23 deletions.
30 changes: 7 additions & 23 deletions .github/workflows/spotube-release-binary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -249,31 +249,15 @@ jobs:
run: |
sed -i 's|%{{APPDATA_RELEASE}}%|<release version="${{ env.BUILD_VERSION }}" date="${{ steps.date.outputs.date }}" />|' 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 }}
- name: Build and push (nightly)
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 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: |
Expand Down

0 comments on commit adecc4b

Please sign in to comment.