Skip to content

Commit 4aade97

Browse files
committed
Update Semaphore configuration
1 parent f11fa9a commit 4aade97

1 file changed

Lines changed: 8 additions & 21 deletions

File tree

.semaphore/semaphore.yml

Lines changed: 8 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,17 @@
11
version: v1.0
22
name: Build and deploy
3-
43
agent:
54
machine:
65
type: f1-standard-4
76
os_image: ubuntu2404
8-
97
global_job_config:
108
env_vars:
119
- name: FLUTTER_VERSION
1210
value: 3.32.0
13-
14-
# Step 1: BCCM Android only. Kids Android, BCCM iOS, Kids iOS will be added
15-
# in subsequent steps once this path is green.
16-
1711
blocks:
1812
- name: Prep bccm version
1913
dependencies: []
2014
task:
21-
secrets:
22-
- name: android-play-store-api
2315
jobs:
2416
- name: Compute bccm versionCode
2517
commands:
@@ -33,13 +25,10 @@ blocks:
3325
- test -n "$BUILD_NUMBER" && test "$BUILD_NUMBER" -gt 0
3426
- echo "$BUILD_NUMBER" > /tmp/bccm_build_number
3527
- artifact push workflow /tmp/bccm_build_number -d bccm_build_number
36-
3728
- name: Build bccm Android
38-
dependencies: [Prep bccm version]
29+
dependencies:
30+
- Prep bccm version
3931
task:
40-
secrets:
41-
- name: brunstadtv-env
42-
- name: android-keystore-bccm
4332
prologue:
4433
commands:
4534
- checkout
@@ -53,7 +42,7 @@ blocks:
5342
tar xf /tmp/flutter.tar.xz -C $HOME
5443
fi
5544
- cache store flutter-sdk-linux-$FLUTTER_VERSION $HOME/flutter
56-
- export PATH="$HOME/flutter/bin:$PATH"
45+
- 'export PATH="$HOME/flutter/bin:$PATH"'
5746
- flutter --version
5847
- export ANDROID_HOME="$HOME/android-sdk"
5948
- cache restore android-sdk
@@ -67,7 +56,7 @@ blocks:
6756
"$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager" "platform-tools" "platforms;android-36" "build-tools;36.0.0"
6857
fi
6958
- cache store android-sdk $ANDROID_HOME
70-
- export PATH="$ANDROID_HOME/platform-tools:$ANDROID_HOME/cmdline-tools/latest/bin:$PATH"
59+
- 'export PATH="$ANDROID_HOME/platform-tools:$ANDROID_HOME/cmdline-tools/latest/bin:$PATH"'
7160
jobs:
7261
- name: Build AAB
7362
commands:
@@ -83,19 +72,17 @@ blocks:
8372
keyAlias=$KEY_ALIAS
8473
storeFile=$keystore_path
8574
EOF
86-
- cache restore pub-linux-$SEMAPHORE_GIT_BRANCH-$(checksum pubspec.yaml),pub-linux-$(checksum pubspec.yaml),pub-linux
75+
- 'cache restore pub-linux-$SEMAPHORE_GIT_BRANCH-$(checksum pubspec.yaml),pub-linux-$(checksum pubspec.yaml),pub-linux'
8776
- make pubgetall
8877
- cache store pub-linux-$SEMAPHORE_GIT_BRANCH-$(checksum pubspec.yaml) $HOME/.pub-cache
8978
- flutter build appbundle --release --flavor prod -t lib/main_prod.dart --build-number=$BUILD_NUMBER
9079
- artifact push workflow build/app/outputs/bundle/prodRelease/app-prod-release.aab -d bccm.aab
91-
9280
- name: Deploy bccm Android
93-
dependencies: [Build bccm Android]
81+
dependencies:
82+
- Build bccm Android
9483
run:
95-
when: "branch = 'master'"
84+
when: branch = 'master'
9685
task:
97-
secrets:
98-
- name: android-play-store-api
9986
jobs:
10087
- name: Upload to Play (internal + beta)
10188
commands:

0 commit comments

Comments
 (0)