Update Go version to 1.21.3 in gs autoscaler build pipeline #25
Workflow file for this run
This file contains 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: 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 }} |