File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -39,13 +39,14 @@ jobs:
3939 run : echo "$OUTPUT1 $OUTPUT2 ${{matrix.tag}}"
4040 - name : data
4141 run : |
42- echo '${{needs.fetch-data.outputs.versions }}' | jq --arg KEY "${{ matrix.tag }}" '.[$KEY]'
42+ KUBECTL_VERSION=$('${{needs.fetch-data.outputs.versions }}' | jq --arg KEY "${{ matrix.tag }}" '.[$KEY]')
43+ echo "kubectl_version=$KUBECTL_VERSION" >> "$GITHUB_ENV"
4344 - name : Build-kubetcl-with-shell
4445 uses : coopTilleuls/action-docker-build-push@custom-tags
4546 with :
4647 IMAGE_NAME : kubectl
4748 BUILD_CONTEXT : ./kubectl
48- BUILD_ARGS : KUBECTL_VERSION=$(echo '${{needs.fetch- data.outputs.versions }}' | jq --arg KEY "${{ matrix.tag }}" '.[$KEY]' )
49+ BUILD_ARGS : KUBECTL_VERSION=${{steps. data.ouputs.kubectl_version}}
4950 BUILD_TARGET : debian-kubectl
5051 REGISTRY_JSON_KEY : ${{ secrets.GITHUB_TOKEN }}
5152 IMAGE_REPOSITORY : ghcr.io/cooptilleuls/sre
You can’t perform that action at this time.
0 commit comments