Skip to content

Commit

Permalink
Changing The Kubernetes Package Repository
Browse files Browse the repository at this point in the history
  • Loading branch information
alanpeng committed Oct 25, 2023
1 parent 97873f9 commit a9f10b5
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 22 deletions.
8 changes: 4 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
- run:
name: Build an amd64 container image
command: |
docker build -f Dockerfile.amd64 -t wise2c/kubeadm-version:amd64-$CIRCLE_BRANCH .
docker build -t wise2c/kubeadm-version:amd64-$CIRCLE_BRANCH .
docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
docker push wise2c/kubeadm-version:amd64-$CIRCLE_BRANCH
docker run --rm --name=kubeadm-version wise2c/kubeadm-version:amd64-$CIRCLE_BRANCH kubeadm config images list
Expand All @@ -18,7 +18,7 @@ jobs:
- run:
name: Build an amd64 container image
command: |
docker build -f Dockerfile.amd64 -t wise2c/kubeadm-version:amd64-$CIRCLE_TAG .
docker build -t wise2c/kubeadm-version:amd64-$CIRCLE_TAG .
docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
docker push wise2c/kubeadm-version:amd64-$CIRCLE_TAG
docker run --rm --name=kubeadm-version wise2c/kubeadm-version:amd64-$CIRCLE_TAG kubeadm config images list --kubernetes-version $CIRCLE_TAG
Expand All @@ -31,7 +31,7 @@ jobs:
- run:
name: Build an aarch64 container image
command: |
docker build -f Dockerfile.aarch64 -t wise2c/kubeadm-version:aarch64-$CIRCLE_BRANCH .
docker build -t wise2c/kubeadm-version:aarch64-$CIRCLE_BRANCH .
docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
docker push wise2c/kubeadm-version:aarch64-$CIRCLE_BRANCH
docker run --rm --name=kubeadm-version wise2c/kubeadm-version:aarch64-$CIRCLE_BRANCH kubeadm config images list
Expand All @@ -44,7 +44,7 @@ jobs:
- run:
name: Build an aarch64 container image
command: |
docker build -f Dockerfile.aarch64 -t wise2c/kubeadm-version:aarch64-$CIRCLE_TAG .
docker build -t wise2c/kubeadm-version:aarch64-$CIRCLE_TAG .
docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
docker push wise2c/kubeadm-version:aarch64-$CIRCLE_TAG
docker run --rm --name=kubeadm-version wise2c/kubeadm-version:aarch64-$CIRCLE_TAG kubeadm config images list --kubernetes-version $CIRCLE_TAG
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.amd64 → Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
FROM almalinux:9
COPY kubernetes-amd64.repo /etc/yum.repos.d
COPY kubernetes.repo /etc/yum.repos.d
RUN yum -y install kubeadm-1.26.10 kubectl-1.26.10 kubelet-1.26.10
3 changes: 0 additions & 3 deletions Dockerfile.aarch64

This file was deleted.

7 changes: 0 additions & 7 deletions kubernetes-aarch64.repo

This file was deleted.

7 changes: 0 additions & 7 deletions kubernetes-amd64.repo

This file was deleted.

6 changes: 6 additions & 0 deletions kubernetes.repo
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[kubernetes]
name=Kubernetes
baseurl=https://pkgs.k8s.io/core:/stable:/v1.26/rpm/
enabled=1
gpgcheck=1
gpgkey=https://pkgs.k8s.io/core:/stable:/v1.26/rpm/repodata/repomd.xml.key

0 comments on commit a9f10b5

Please sign in to comment.