feat: upgrading kubernetes to v1.32.3 (#41) #13
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: image | |
on: | |
push: | |
tags: | |
- '*' | |
env: | |
KUBERNETES_VERSION: 1.32.3 | |
jobs: | |
build-and-push: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Delete huge unnecessary tools folder | |
run: rm -rf /opt/hostedtoolcache | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up QEMU | |
uses: docker/[email protected] | |
- name: Set up Docker Buildx | |
uses: docker/[email protected] | |
- name: Login to GCR | |
uses: docker/[email protected] | |
with: | |
registry: eu.gcr.io | |
username: _json_key | |
password: ${{ secrets.PUBLIC_GCR_JSON_KEY }} | |
- name: Extract version from tag | |
id: version | |
run: | | |
# Remove 'v' prefix if present | |
VERSION=${GITHUB_REF#refs/tags/v} | |
VERSION=${VERSION#refs/tags/} | |
echo "VERSION=${VERSION}" >> $GITHUB_ENV | |
- name: Build and push | |
uses: docker/[email protected] | |
with: | |
build-args: | | |
KUBERNETES_VERSION=${{ env.KUBERNETES_VERSION }} | |
context: . | |
push: true | |
tags: | | |
eu.gcr.io/swade1987/kubernetes-toolkit:latest | |
eu.gcr.io/swade1987/kubernetes-toolkit:${{ env.VERSION }} |