-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
73 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: /.*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |