File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed
Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change 2525 runs-on : self-hosted
2626 needs : set-up
2727 steps :
28-
29- - uses : docker/build-push-action@v6
28+ - name : Check if base image exists locally
29+ id : check_base_image
30+ run : |
31+ if docker image inspect carla-base:ue4-${{ env.UBUNTU_DISTRO }} > /dev/null 2>&1; then
32+ echo "exists=true" >> $GITHUB_OUTPUT
33+ else
34+ echo "exists=false" >> $GITHUB_OUTPUT
35+ fi
36+
37+ - name : Build base image
38+ if : steps.check_base_image.outputs.exists == 'false'
39+ uses : docker/build-push-action@v6
3040 name : Build image
3141 with :
3242 context : Util/Docker
3646 build-args : |
3747 UBUNTU_DISTRO=${{ env.UBUNTU_DISTRO }}
3848
49+ - name : Reuse existing monolith image
50+ if : steps.check_monolith_image.outputs.exists == 'true'
51+ run : echo "Monolith image already exists locally, skipping rebuild."
52+
3953 create-monolith-image :
4054 name : Create monolith image
4155 runs-on : self-hosted
You can’t perform that action at this time.
0 commit comments