44 image :
55 description : Name of the image to build
66 required : true
7- image -tags :
7+ resolved -tags :
88 description : Comma-separated tags to apply to the image
99 required : true
1010 push-image :
@@ -22,11 +22,20 @@ inputs:
2222 github-token :
2323 description : GitHub token
2424 required : true
25+ debug-input-chain :
26+ description : Enable extra debug logging for image tag input propagation and post-hook behavior
27+ required : false
28+ default : ' false'
2529
2630runs :
2731 using : composite
2832 steps :
2933
34+ - name : Persist resolved tags
35+ run : |
36+ echo "BUILDCONTAINER_RESOLVED_TAGS=${{ inputs.resolved-tags }}" >> $GITHUB_ENV
37+ shell : bash
38+
3039 - name : Log in to registry
3140 if : inputs.push-image == 'true'
3241 uses : docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121
@@ -35,13 +44,20 @@ runs:
3544 username : ${{ github.actor }}
3645 password : ${{ inputs.github-token }}
3746
47+ - name : Probe tags in build-devcontainer
48+ if : inputs.debug-input-chain == 'true'
49+ uses : ./.github/actions/debug-post-input
50+ with :
51+ source : build-devcontainer/${{ inputs.image }}
52+ imageTag : ${{ env.BUILDCONTAINER_RESOLVED_TAGS }}
53+
3854 - name : Build devcontainer image
3955 uses : devcontainers/ci@b63b30de439b47a52267f241112c5b453b673db5
4056 env :
4157 BASE_IMAGE_TAG : ${{ inputs.base-image-tag }}
4258 with :
4359 imageName : ${{ inputs.registry }}/${{ github.repository }}/${{ inputs.image }}
44- imageTag : ${{ inputs.image-tags }}
60+ imageTag : ${{ env.BUILDCONTAINER_RESOLVED_TAGS }}
4561 push : ${{ inputs.push-image == 'true' && 'always' || 'never' }}
4662 subFolder : ./src/${{ inputs.image }}
4763 cacheFrom : ${{ inputs.registry }}/${{ github.repository }}/${{ inputs.image }}
0 commit comments