Skip to content

Commit

Permalink
enable arm build
Browse files Browse the repository at this point in the history
  • Loading branch information
toelke committed Jan 2, 2023
1 parent 7c2de27 commit 92408c4
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 14 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/image-build.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Image build
on: [pull_request]
jobs:
build-amd64:
name: Image build/amd64 thin plugin
build:
name: Image build thin plugin
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
Expand All @@ -16,8 +16,9 @@ jobs:
with:
context: .
push: false
tags: ghcr.io/${{ github.repository }}:latest-amd64
tags: ghcr.io/${{ github.repository }}:latest
file: Dockerfile
platforms: linux/amd64,linux/arm64

build-origin:
name: Image build/origin
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/image-push-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ on:
branches:
- master
jobs:
push-amd64:
name: Image push/amd64
push:
name: Image push
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
Expand All @@ -29,9 +29,10 @@ jobs:
context: .
push: true
tags: |
ghcr.io/${{ github.repository }}:latest-amd64
ghcr.io/${{ github.repository }}:snapshot-amd64
ghcr.io/${{ github.repository }}:latest
ghcr.io/${{ github.repository }}:snapshot
file: Dockerfile
platforms: linux/amd64,linux/arm64

push-origin:
name: Image push/origin
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/image-push-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ on:
tags:
- v*
jobs:
push-amd64:
name: Image push/amd64
push:
name: Image push
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
Expand Down Expand Up @@ -36,9 +36,10 @@ jobs:
context: .
push: true
tags: |
ghcr.io/${{ github.repository }}:stable-amd64
${{ steps.docker_meta.outputs.tags }}-amd64
ghcr.io/${{ github.repository }}:stable
${{ steps.docker_meta.outputs.tags }}
file: Dockerfile
platforms: linux/amd64,linux/arm64

push-origin:
name: Image push/origin
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This Dockerfile is used to build the image available on DockerHub
FROM centos:centos7 as build
FROM centos:centos8 as build

# Add everything
ADD . /usr/src/cni-route-override
Expand Down
2 changes: 0 additions & 2 deletions deployments/daemonset-install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ spec:
tier: node
app: route-override
spec:
nodeSelector:
beta.kubernetes.io/arch: amd64
tolerations:
- operator: Exists
effect: NoSchedule
Expand Down

0 comments on commit 92408c4

Please sign in to comment.