mirror of
https://github.com/kata-containers/kata-containers.git
synced 2026-01-25 22:54:29 +00:00
tools: kubectl: Add kubectl version as a tag
This is a suggestion from Choi, so we can easily test with a specific kubectl version and also easily understand which kubectl version is being used in case of failure. Signed-off-by: Fabiano Fidêncio <ffidencio@nvidia.com>
This commit is contained in:
7
.github/workflows/build-kubectl-image.yaml
vendored
7
.github/workflows/build-kubectl-image.yaml
vendored
@@ -45,6 +45,12 @@ jobs:
|
||||
username: ${{ vars.QUAY_DEPLOYER_USERNAME }}
|
||||
password: ${{ secrets.QUAY_DEPLOYER_PASSWORD }}
|
||||
|
||||
- name: Get kubectl version
|
||||
id: kubectl-version
|
||||
run: |
|
||||
KUBECTL_VERSION=$(curl -L -s https://dl.k8s.io/release/stable.txt)
|
||||
echo "version=${KUBECTL_VERSION}" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Generate image metadata
|
||||
id: meta
|
||||
uses: docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804 # v5.7.0
|
||||
@@ -53,6 +59,7 @@ jobs:
|
||||
tags: |
|
||||
type=raw,value=latest
|
||||
type=raw,value={{date 'YYYYMMDD'}}
|
||||
type=raw,value=${{ steps.kubectl-version.outputs.version }}
|
||||
type=sha,prefix=
|
||||
|
||||
- name: Build and push multi-arch image
|
||||
|
||||
Reference in New Issue
Block a user