-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add github actions to build multi arch images
- Loading branch information
Showing
26 changed files
with
525 additions
and
59 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,51 @@ | ||
name: Build consumerui | ||
|
||
on: | ||
push: | ||
branches: | ||
- "master" | ||
release: | ||
types: [published, edited] | ||
|
||
jobs: | ||
docker: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v3 | ||
- | ||
name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
- | ||
name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
- | ||
name: Login to Container Registry | ||
uses: docker/login-action@v2 | ||
if: github.event_name != 'pull_request' | ||
with: | ||
registry: ${{ secrets.REGISTRY }} | ||
username: ${{ secrets.REGISTRY_USERNAME }} | ||
password: ${{ secrets.REGISTRY_PASSWORD }} | ||
- | ||
name: Set Version | ||
run: echo "VERSION=$(tail -1 consumerui/versions.txt)" >> $GITHUB_ENV | ||
- | ||
name: Docker metadata | ||
id: consumerui_meta | ||
uses: docker/metadata-action@v4 | ||
with: | ||
images: ${{ secrets.REGISTRY }}/${{ secrets.REGISTRY_USERNAME }}/consumerui | ||
tags: | | ||
type=raw,value=latest,enable={{is_default_branch}} | ||
type=raw,value=${{env.VERSION}},enable=${{ github.event_name == 'release' && github.event.action == 'published' }} | ||
- | ||
name: Build and push consumerui | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: ./consumerui | ||
platforms: linux/amd64,linux/arm64 | ||
push: ${{ github.event_name != 'pull_request' }} | ||
tags: ${{ steps.consumerui_meta.outputs.tags }} |
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,91 @@ | ||
name: Build deploy utils | ||
|
||
on: | ||
push: | ||
branches: | ||
- "master" | ||
release: | ||
types: [published, edited] | ||
|
||
jobs: | ||
docker: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v3 | ||
- | ||
name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
- | ||
name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
- | ||
name: Login to Container Registry | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ${{ secrets.REGISTRY }} | ||
username: ${{ secrets.REGISTRY_USERNAME }} | ||
password: ${{ secrets.REGISTRY_PASSWORD }} | ||
- | ||
name: Set Version | ||
run: echo "VERSION=$(tail -1 deploy/versions.txt)" >> $GITHUB_ENV | ||
|
||
- | ||
name: Docker webhook metadata | ||
id: webhook_tls_getter | ||
uses: docker/metadata-action@v4 | ||
with: | ||
images: ${{ secrets.REGISTRY }}/${{ secrets.REGISTRY_USERNAME }}/webhook-tls-getter | ||
tags: | | ||
type=raw,value=latest,enable={{is_default_branch}} | ||
type=raw,value=${{env.VERSION}},enable=${{ github.event_name == 'release' && github.event.action == 'published' }} | ||
- | ||
name: Build and push webhook-tls-getter | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: ./deploy | ||
file: ./deploy/Dockerfile | ||
platforms: linux/amd64,linux/arm64 | ||
push: ${{ github.event_name != 'pull_request' }} | ||
tags: ${{ steps.webhook_tls_getter.outputs.tags }} | ||
|
||
- | ||
name: Docker delete-kubeplus-resources metadata | ||
id: delete_kubeplus_resources | ||
uses: docker/metadata-action@v4 | ||
with: | ||
images: ${{ secrets.REGISTRY }}/${{ secrets.REGISTRY_USERNAME }}/delete-kubeplus-resources | ||
tags: | | ||
type=raw,value=latest,enable={{is_default_branch}} | ||
type=raw,value=${{env.VERSION}},enable=${{ github.event_name == 'release' && github.event.action == 'published' }} | ||
- | ||
name: Build and push delete-kubeplus-resources | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: ./deploy | ||
file: ./deploy/Dockerfile.cleanup | ||
platforms: linux/amd64,linux/arm64 | ||
push: ${{ github.event_name != 'pull_request' }} | ||
tags: ${{ steps.delete_kubeplus_resources.outputs.tags }} | ||
|
||
- | ||
name: Docker kubeconfiggenerator metadata | ||
id: kubeconfiggenerator | ||
uses: docker/metadata-action@v4 | ||
with: | ||
images: ${{ secrets.REGISTRY }}/${{ secrets.REGISTRY_USERNAME }}/kubeconfiggenerator | ||
tags: | | ||
type=raw,value=latest,enable={{is_default_branch}} | ||
type=raw,value=${{env.VERSION}},enable=${{ github.event_name == 'release' && github.event.action == 'published' }} | ||
- | ||
name: Build and push kubeconfiggenerator | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: ./deploy | ||
file: ./deploy/Dockerfile.kubeconfiggenerator | ||
platforms: linux/amd64,linux/arm64 | ||
push: ${{ github.event_name != 'pull_request' }} | ||
tags: ${{ steps.kubeconfiggenerator.outputs.tags }} |
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,51 @@ | ||
name: Build mutating-webhook | ||
|
||
on: | ||
push: | ||
branches: | ||
- "master" | ||
release: | ||
types: [published, edited] | ||
|
||
jobs: | ||
docker: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v3 | ||
- | ||
name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
- | ||
name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
- | ||
name: Login to Container Registry | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ${{ secrets.REGISTRY }} | ||
username: ${{ secrets.REGISTRY_USERNAME }} | ||
password: ${{ secrets.REGISTRY_PASSWORD }} | ||
- | ||
name: Set Version | ||
run: echo "VERSION=$(tail -1 mutating-webhook/versions.txt)" >> $GITHUB_ENV | ||
- | ||
name: Docker webhook metadata | ||
id: pac_mutating_admission_webhook | ||
uses: docker/metadata-action@v4 | ||
with: | ||
images: ${{ secrets.REGISTRY }}/${{ secrets.REGISTRY_USERNAME }}/pac-mutating-admission-webhook | ||
tags: | | ||
type=raw,value=latest,enable={{is_default_branch}} | ||
type=raw,value=${{env.VERSION}},enable=${{ github.event_name == 'release' && github.event.action == 'published' }} | ||
- | ||
name: Build and push mutating-webhook | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: . | ||
file: mutating-webhook/Dockerfile | ||
platforms: linux/amd64,linux/arm64 | ||
push: ${{ github.event_name != 'pull_request' }} | ||
tags: ${{ steps.pac_mutating_admission_webhook.outputs.tags }} |
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,52 @@ | ||
name: Build helmer | ||
|
||
on: | ||
push: | ||
branches: | ||
- "master" | ||
release: | ||
types: [published, edited] | ||
|
||
jobs: | ||
docker: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v3 | ||
- | ||
name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
- | ||
name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
- | ||
name: Login to Container Registry | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ${{ secrets.REGISTRY }} | ||
username: ${{ secrets.REGISTRY_USERNAME }} | ||
password: ${{ secrets.REGISTRY_PASSWORD }} | ||
- | ||
name: Set Helmer Version | ||
run: echo "HELMER_VERSION=$(tail -1 platform-operator/helm-pod/versions.txt)" >> $GITHUB_ENV | ||
|
||
- | ||
name: Docker helm-pod metadata | ||
id: helm_pod | ||
uses: docker/metadata-action@v4 | ||
with: | ||
images: ${{ secrets.REGISTRY }}/${{ secrets.REGISTRY_USERNAME }}/helm-pod | ||
tags: | | ||
type=raw,value=latest,enable={{is_default_branch}} | ||
type=raw,value=${{env.HELMER_VERSION}},enable=${{ github.event_name == 'release' && github.event.action == 'published' }} | ||
- | ||
name: Build and push helm pod | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: . | ||
file: platform-operator/helm-pod/Dockerfile | ||
platforms: linux/amd64,linux/arm64 | ||
push: ${{ github.event_name != 'pull_request' }} | ||
tags: ${{ steps.helm_pod.outputs.tags }} |
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,52 @@ | ||
name: Build platform-operator | ||
|
||
on: | ||
push: | ||
branches: | ||
- "master" | ||
release: | ||
types: [published, edited] | ||
|
||
jobs: | ||
docker: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v3 | ||
- | ||
name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
- | ||
name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
- | ||
name: Login to Container Registry | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ${{ secrets.REGISTRY }} | ||
username: ${{ secrets.REGISTRY_USERNAME }} | ||
password: ${{ secrets.REGISTRY_PASSWORD }} | ||
|
||
- | ||
name: Set platform-operator Version | ||
run: echo "OPERATOR_VERSION=$(tail -1 platform-operator/versions.txt)" >> $GITHUB_ENV | ||
- | ||
name: Docker platform-operator metadata | ||
id: platform_operator | ||
uses: docker/metadata-action@v4 | ||
with: | ||
images: ${{ secrets.REGISTRY }}/${{ secrets.REGISTRY_USERNAME }}/platform-operator | ||
tags: | | ||
type=raw,value=latest,enable={{is_default_branch}} | ||
type=raw,value=${{env.OPERATOR_VERSION}},enable=${{ github.event_name == 'release' && github.event.action == 'published' }} | ||
- | ||
name: Build and push platform-operator | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: ./platform-operator | ||
file: platform-operator/artifacts/deployment/Dockerfile | ||
platforms: linux/amd64,linux/arm64 | ||
push: ${{ github.event_name != 'pull_request' }} | ||
tags: ${{ steps.platform_operator.outputs.tags }} |
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
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
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
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,6 +1,6 @@ | ||
FROM ubuntu:20.04 | ||
ADD delete-kubeplus-components.sh /root/. | ||
COPY kubectl /root/ | ||
RUN apt-get update && apt-get install -y openssl jq python3 python3-pip && pip3 install pyyaml | ||
RUN apt-get update && apt-get install -y openssl curl jq python3 python3-pip && pip3 install pyyaml | ||
RUN arch=$(arch | sed s/aarch64/arm64/ | sed s/x86_64/amd64/) && cd /root/ && curl -LO "https://dl.k8s.io/release/v1.26.0/bin/linux/${arch}/kubectl" | ||
RUN cp /root/kubectl bin/. && chmod +x /root/kubectl && chmod +x bin/kubectl | ||
ENTRYPOINT ["/root/delete-kubeplus-components.sh"] |
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
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
Oops, something went wrong.