Skip to content

Testing - add GHA workflows to replace Drone #3

Testing - add GHA workflows to replace Drone

Testing - add GHA workflows to replace Drone #3

Workflow file for this run

name: CI on Push and Pull Request
on:
pull_request:
branches:
- master
push:
branches:
- master
env:
IMAGE: rancher/hyperkube-base
jobs:
test-prepare-binaries:
permissions:
contents: read
strategy:
matrix:
os: [linux]
arch: [ amd64, arm64 ]
runs-on: org-${{ github.repository_owner_id }}-${{ matrix.arch }}-k8s
container: ubuntu:22.04
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Prepare binaries
run: |
sudo apt-get update
sudo apt-get install -y make
make ARCH=${{ matrix.arch }} scripts/iptables-wrapper-installer.sh
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.IMAGE }}
flavor: |
latest=false
- name: Test build Docker image
uses: docker/build-push-action@v5
with:
context: .
push: false
tags: "${{ steps.meta.outputs.tags }}"
platforms: "${{ matrix.os }}/${{ matrix.arch }}"
labels: "${{ steps.meta.outputs.labels }}"
build-args: |
ARCH="${{ matrix.arch }}"