Skip to content

Commit dccaa16

Browse files
committed
test build
1 parent 36d6e6e commit dccaa16

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/build-kubectl.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)