Skip to content

Commit

Permalink
update gitlab ci
Browse files Browse the repository at this point in the history
  • Loading branch information
danemadsen committed Apr 13, 2024
1 parent aeb7b5a commit 628813f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .gitlab/.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ stages:

build-apk:
stage: build
image: cirrusci/flutter:latest
image: cirrusci/flutter:latest # Still use the Flutter image for its dependencies
only:
- main
variables:
Expand All @@ -15,7 +15,7 @@ build-apk:
- export PUB_CACHE=$(pwd)/.pub-cache

# Build and configure Flutter from submodule
- cd packages/flutter # Navigate into the Flutter submodule directory
- cd packages/flutter
- $PWD/bin/flutter config --no-analytics
- $PWD/bin/flutter packages pub get

Expand All @@ -24,8 +24,8 @@ build-apk:
- 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --output ../android/key.properties "$CI_API_V4_URL/projects/$CI_PROJECT_ID/secure_files/2"'

# Build the APK (now from the project root)
- cd .. # Navigate back to project root
- packages/flutter/bin/flutter build apk
- cd .. # Navigate back to the project root
- $PWD/packages/flutter/bin/flutter build apk # Use relative path from root
artifacts:
paths:
- build/app/outputs/flutter-apk/app-release.apk
- build/app/outputs/flutter-apk/app-release.apk

0 comments on commit 628813f

Please sign in to comment.