Skip to content

Update Go version to 1.21.3 in gs autoscaler build pipeline #25

Update Go version to 1.21.3 in gs autoscaler build pipeline

Update Go version to 1.21.3 in gs autoscaler build pipeline #25

Workflow file for this run

name: Build and push Docker image for gridscale's Cluster Autoscaler
on:
push:
tags:
- "*"
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Go 1.21
uses: actions/setup-go@v2
with:
go-version: 1.21.3
- name: Change directory to cluster-autoscaler and build binary
working-directory: ./cluster-autoscaler
run: |
make build-arch-amd64
- name: Login to Docker registry
uses: docker/login-action@v1
with:
registry: registry.kubecuddle.io
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: ./cluster-autoscaler
file: ./cluster-autoscaler/Dockerfile.amd64
push: true
platforms: linux/arm64
tags: registry.kubecuddle.io/k8s/cluster-autoscaler:${{ github.ref_name }}