Skip to content

Commit

Permalink
switch 'serverRevision' to use the build short SHA (#2776)
Browse files Browse the repository at this point in the history
  • Loading branch information
devoncarew authored Dec 28, 2023
1 parent 1f70b2c commit 51a964c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .cloud_build/dart_services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ steps:
- PROJECT_ID=$PROJECT_ID
- --build-arg
- FLUTTER_CHANNEL=${_FLUTTER_CHANNEL}
- --build-arg
- BUILD_SHA=${SHORT_SHA}
- .
dir: pkgs/dart_services

Expand Down
2 changes: 2 additions & 0 deletions pkgs/dart_services/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
ARG PROJECT_ID
ARG FLUTTER_CHANNEL
ARG BUILD_SHA

FROM gcr.io/$PROJECT_ID/flutter:$FLUTTER_CHANNEL

WORKDIR /app
Expand Down
2 changes: 1 addition & 1 deletion pkgs/dart_services/lib/src/common_server.dart
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ class CommonServerApi {
dartVersion: sdk.dartVersion,
flutterVersion: sdk.flutterVersion,
engineVersion: sdk.engineVersion,
serverRevision: Platform.environment['K_REVISION'],
serverRevision: Platform.environment['BUILD_SHA'],
experiments: sdk.experiments,
packages: packages,
);
Expand Down

0 comments on commit 51a964c

Please sign in to comment.