forked from kubernetes/autoscaler
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (33 loc) · 1.04 KB
/
gsk-release.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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.19
uses: actions/setup-go@v2
with:
go-version: 1.19
- 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 }}