Skip to content

Commit

Permalink
Add ARM platform support
Browse files Browse the repository at this point in the history
  • Loading branch information
alanpeng committed Dec 14, 2022
1 parent 25b1a58 commit c9bf367
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 2 deletions.
71 changes: 71 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
jobs:
build-branches-x86:
machine: true
steps:
- checkout
- run:
name: Build a container image
command: |
docker build -f Dockerfile.amd64 -t wise2c/kubeadm-version:$CIRCLE_BRANCH .
docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
docker push wise2c/kubeadm-version:$CIRCLE_BRANCH
docker run --rm --name=kubeadm-version wise2c/kubeadm-version:$CIRCLE_BRANCH kubeadm config images list
build-tags-x86:
machine: true
steps:
- checkout
- run:
name: Build a container image
command: |
docker build -f Dockerfile.amd64 -t wise2c/kubeadm-version:$CIRCLE_TAG .
docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
docker push wise2c/kubeadm-version:$CIRCLE_TAG
docker run --rm --name=kubeadm-version wise2c/kubeadm-version:$CIRCLE_TAG kubeadm config images list
build-branches-arm:
machine: true
resource_class: arm.medium
steps:
- checkout
- run:
name: Build a container image
command: |
docker build -f Dockerfile.aarch64 -t wise2c/kubeadm-version-arm:$CIRCLE_BRANCH .
docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
docker push wise2c/kubeadm-version-arm:$CIRCLE_BRANCH
docker run --rm --name=kubeadm-version wise2c/kubeadm-version-arm:$CIRCLE_BRANCH kubeadm config images list
build-tags-arm:
resource_class: arm.medium
machine: true
steps:
- checkout
- run:
name: Build a container image
command: |
docker build -f Dockerfile.aarch64 -t wise2c/kubeadm-version-arm:$CIRCLE_TAG .
docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
docker push wise2c/kubeadm-version-arm:$CIRCLE_TAG
docker run --rm --name=kubeadm-version wise2c/kubeadm-version-arm:$CIRCLE_TAG kubeadm config images list
workflows:
version: 2
build-for-branches:
jobs:
- build-branches-x86
- build-branches-arm
build-for-tags:
jobs:
- build-tags-x86:
filters:
tags:
only: /^v.*/
branches:
ignore: /.*/
- build-tags-arm:
filters:
tags:
only: /^v.*/
branches:
ignore: /.*/
2 changes: 1 addition & 1 deletion Dockerfile.aarch64
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
FROM centos:8
COPY kubernetes-aarch64.repo /etc/yum.repos.d
RUN yum -y install kubeadm-1.20.5
RUN yum -y install kubeadm-1.26.0
2 changes: 1 addition & 1 deletion Dockerfile.amd64
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
FROM centos:8
COPY kubernetes-amd64.repo /etc/yum.repos.d
RUN yum -y install kubeadm-1.20.5
RUN yum -y install kubeadm-1.26.0

0 comments on commit c9bf367

Please sign in to comment.