Skip to content

Commit

Permalink
Merge pull request #17 from kubeshop/f1ames/feat/multiplatform-build
Browse files Browse the repository at this point in the history
Multiplatform build
  • Loading branch information
f1ames authored Nov 7, 2023
2 parents 5573d1d + e097828 commit 51efa93
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:

build-and-push-docker:
runs-on: ubuntu-latest
name: Docker images
name: Build Docker image
strategy:
fail-fast: true
matrix:
Expand All @@ -23,9 +23,12 @@ jobs:
- name: Debug version
run: echo ${{ env.VERSION }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

- name: Docker Cache
uses: actions/cache@v3
Expand All @@ -36,7 +39,7 @@ jobs:
${{ runner.os }}-buildx-
- name: Login to DockerHub
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
Expand All @@ -48,7 +51,7 @@ jobs:
uses: docker/build-push-action@v5
with:
context: ./admission-controller/${{ matrix.from }}/
platforms: linux/amd64,linux/arm64
platforms: linux/amd64,linux/arm64/v8
file: ./admission-controller/${{ matrix.from }}/Dockerfile
tags: |
kubeshop/monokle-admission-controller-${{ matrix.from }}:latest
Expand Down
4 changes: 2 additions & 2 deletions admission-controller/init/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG BUILD_IMAGE="node:20.8-alpine"
ARG PRODUCTION_IMAGE="node:20.8-alpine"
ARG BUILD_IMAGE="node:20.9-alpine3.18"
ARG PRODUCTION_IMAGE="node:20.9-alpine3.18"

#####################
# Compile container
Expand Down
4 changes: 2 additions & 2 deletions admission-controller/server/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG BUILD_IMAGE="node:20.8-alpine"
ARG PRODUCTION_IMAGE="node:20.8-alpine"
ARG BUILD_IMAGE="node:20.9-alpine3.18"
ARG PRODUCTION_IMAGE="node:20.9-alpine3.18"

#####################
# Compile container
Expand Down
4 changes: 2 additions & 2 deletions admission-controller/synchronizer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG BUILD_IMAGE="node:20.8-alpine"
ARG PRODUCTION_IMAGE="node:20.8-alpine"
ARG BUILD_IMAGE="node:20.9-alpine3.18"
ARG PRODUCTION_IMAGE="node:20.9-alpine3.18"

#####################
# Compile container
Expand Down

0 comments on commit 51efa93

Please sign in to comment.