Skip to content

Commit

Permalink
Merge pull request #527 from leakingtapan/arm
Browse files Browse the repository at this point in the history
Add arm support
  • Loading branch information
Cheng Pan authored Aug 27, 2020
2 parents fc47b6e + 5a49cb6 commit b0079ef
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 7 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/container-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Docker Buildx
id: buildx
uses: crazy-max/ghaction-docker-buildx@v3
with:
buildx-version: latest
qemu-version: latest
- name: Build container image
run: |
docker build -t aws-ebs-csi-driver .
docker buildx build \
-t aws-ebs-csi-driver \
--platform=linux/arm64,linux/amd64 \
--output="type=image,push=false" .
- name: Push to Github registry
run: |
USER=$(echo $GITHUB_REPOSITORY | cut -d'/' -f1)
Expand All @@ -22,6 +31,7 @@ jobs:
TAG=$BRANCH
fi
docker login docker.pkg.github.com -u $USER -p ${{ secrets.REGISTRY_TOKEN }}
docker build -t aws-ebs-csi-driver .
docker tag aws-ebs-csi-driver docker.pkg.github.com/$GITHUB_REPOSITORY/$IMAGE:$TAG
docker push docker.pkg.github.com/$GITHUB_REPOSITORY/$IMAGE:$TAG
- name: Push to Dockerhub registry
Expand All @@ -34,5 +44,8 @@ jobs:
TAG=$BRANCH
fi
docker login -u ${{ secrets.DOCKERHUB_USER }} -p ${{ secrets.DOCKERHUB_TOKEN }}
docker tag aws-ebs-csi-driver $REPO:$TAG
docker push $REPO:$TAG
docker buildx build \
-t $REPO:$TAG \
--platform=linux/arm64,linux/amd64 \
--output="type=image,push=true" .
1 change: 0 additions & 1 deletion aws-ebs-csi-driver/templates/controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ spec:
spec:
nodeSelector:
kubernetes.io/os: linux
kubernetes.io/arch: amd64
{{- with .Values.nodeSelector }}
{{ toYaml . | indent 8 }}
{{- end }}
Expand Down
1 change: 0 additions & 1 deletion aws-ebs-csi-driver/templates/node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ spec:
- fargate
nodeSelector:
kubernetes.io/os: linux
kubernetes.io/arch: amd64
hostNetwork: true
priorityClassName: system-node-critical
tolerations:
Expand Down
1 change: 0 additions & 1 deletion deploy/kubernetes/base/controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ spec:
spec:
nodeSelector:
kubernetes.io/os: linux
kubernetes.io/arch: amd64
serviceAccountName: ebs-csi-controller-sa
priorityClassName: system-cluster-critical
tolerations:
Expand Down
1 change: 0 additions & 1 deletion deploy/kubernetes/base/node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ spec:
- fargate
nodeSelector:
kubernetes.io/os: linux
kubernetes.io/arch: amd64
hostNetwork: true
priorityClassName: system-node-critical
tolerations:
Expand Down

0 comments on commit b0079ef

Please sign in to comment.