Skip to content

Commit 040c76a

Browse files
retrieve version
1 parent 1478a72 commit 040c76a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/k8s.tools.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ jobs:
4040
4141
echo "::set-output name=ACTION_RUN_URL::https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}"
4242
echo "::set-output name=ACTION_WORKFLOW_URL::https://github.com/${{github.repository}}/actions/workflows/${{github.action}}.yml"
43+
echo "::set-output name=DOCKER_VERSION::$(cat Dockerfile | grep "cloudkats/k8s-test-tools" | tr ":" " " | awk '{print $3}')"
4344
4445
echo ::set-output name=version::${VERSION}
4546
echo ::set-output name=tag_date::$(date -u +'%Y-%m-%d')
@@ -56,9 +57,10 @@ jobs:
5657
TAG_VERSION: ${{ steps.prep.outputs.version }}
5758
CREATED: ${{ steps.prep.outputs.tag_date }}
5859
BUILD_URL: ${{ steps.prep.outputs.action_run_url }}
60+
IMAGE_VERSION: ${{ steps.prep.outputs.docker_version }}
5961
run: |
6062
../bin/build.sh
61-
IMAGE_VERSION=$(docker run --rm ${IMAGE} "kubectl version --short --client=true" | awk '{print $3}' | sed -e 's/^v//')
63+
# IMAGE_VERSION=$(docker run --rm ${IMAGE} "kubectl version --short --client=true" | awk '{print $3}' | sed -e 's/^v//')
6264
../bin/push.sh
6365
6466
- name: docker hub description

0 commit comments

Comments
 (0)