Skip to content

container build is very slow on arm/arm64 platforms #8

container build is very slow on arm/arm64 platforms

container build is very slow on arm/arm64 platforms #8

Workflow file for this run

name: CI
on:
push:
branches:
- main
issue_comment:
types: [created, edited]
env:
REGISTRY: docker.io
IMAGE_NAME: spyduck/cluster-api-provider-proxmox
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
# add public code coverage reports
coverage:
name: unit test coverage
runs-on: ubuntu-latest
if: github.event_name == 'push' || contains(github.event.comment.body, '/unit-test')
steps:
- uses: actions/checkout@master
- run: "make unit-test-cover"
- uses: codecov/codecov-action@v2
# build and push to docker.io
build:
name: docker build & push
runs-on: ubuntu-latest
if: github.event_name == 'push' || contains(github.event.comment.body, '/buid-push')
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to Docker Hub
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
# platform = linux/amd64,linux/arm64
- name: Build and push Docker image
run: "make docker-buildx IMG=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${GITHUB_SHA::7}"
# report result to pr comment if event is pr comment
result:
name: report to pr comment
runs-on: ubunt-latest
if: github.event_name == 'issue_comment' && ${{ github.event.issue.pull_request }}
steps:
- run: |
gh pr comment ${{ github.event.issue.number }} -b "[Actions: CI] Check result [here](https://github.com/sp-yduck/cluster-api-provider-proxmox/actions/runs/${{ github.run_number }})"