cirruslabs / docker-images-android

Android SDK Docker Images
MIT License
39 stars 18 forks source link

`andoid-sdk:33` built image is not using latest `tools` image #56

Closed davidmartos96 closed 1 year ago

davidmartos96 commented 1 year ago

@fkorotkov It looks like the triggered CI workflow from yesterday #54 has not correctly included the transitive dependency of tools in the android-sdk image.

Latest tools digest is sha256:2d9c9176a44b359070057829c9bd9416f1b40618748b24e732ef6fcd61017321 and the android-sdk image uploaded yesterday is using the tools with digest sha256:26895ef68b93d100a657db8eb14ca544eb17791a8bb03dfab6116bb6799004ab

Maybe it is necessary to force pull transitive images before building each image in Cirrus CI?

Probably a temporary solution would be to trigger again the CI for the android repo and then again on the Flutter repo, which conveniently enough has released a hotfix update yesterday 3.10.6

This behavior can be seen in the CI logs:

tools push step

https://cirrus-ci.com/task/4882704085286912?logs=build_tools#L3366

#7 exporting to image
#7 pushing layers 6.9s done
#7 pushing manifest for ghcr.io/cirruslabs/android-sdk:tools@sha256:2d9c9176a44b359070057829c9bd9416f1b40618748b24e732ef6fcd61017321
#7 pushing manifest for ghcr.io/cirruslabs/android-sdk:tools@sha256:2d9c9176a44b359070057829c9bd9416f1b40618748b24e732ef6fcd61017321 1.1s done
#7 DONE 45.1s

android-sdk build step

https://cirrus-ci.com/task/4882704085286912?logs=build_sdk#L0

docker buildx build --push \
  --tag ghcr.io/cirruslabs/android-sdk:33 \
  sdk/33
#1 [internal] load .dockerignore
#1 transferring context: 2B done
#1 DONE 0.0s
#2 [internal] load build definition from Dockerfile
#2 transferring dockerfile: 326B done
#2 DONE 0.0s
#3 [internal] load metadata for docker.io/cirrusci/android-sdk:tools
#3 DONE 0.7s
#4 [1/2] FROM docker.io/cirrusci/android-sdk:tools@sha256:26895ef68b93d100a657db8eb14ca544eb17791a8bb03dfab6116bb6799004ab
#4 resolve docker.io/cirrusci/android-sdk:tools@sha256:26895ef68b93d100a657db8eb14ca544eb17791a8bb03dfab6116bb6799004ab done
#4 sha256:8922847ad71151ca134ff6df3b8df140fc3c267f3093bc7c6df6290e5275901c 15.73MB / 647.25MB 0.2s
#4 sha256:677076032cca0a2362d25cf3660072e738d1b96fe860409a33ce901d695d7ee8 0B / 29.53MB 0.2s
#4 sha256:677076032cca0a2362d25cf3660072e738d1b96fe860409a33ce901d695d7ee8 9.44MB / 29.53MB 0.3s