Skip to content

Commit

Permalink
feat: add a support for arm64 image (#711)
Browse files Browse the repository at this point in the history
* chore: add a support for arm64 docker image

* added docker-compose.yml for local testings

* Update pr.yml, release.yml, and stage.yml

* removed docker-compose.yml
  • Loading branch information
YogevBokobza authored Jan 19, 2024
1 parent 47be5a0 commit af608ba
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ jobs:
uses: docker/build-push-action@v4.1.1
with:
context: .
platforms: linux/amd64,linux/arm/v7
platforms: linux/amd64,linux/arm/v7,linux/arm64/v8
build-args: |
VCS_REF=${{ github.sha }}
BUILD_DATE=${{ steps.getDate.outputs.date }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ jobs:
with:
context: .
push: true
platforms: linux/amd64,linux/arm/v7
platforms: linux/amd64,linux/arm/v7,linux/arm64/v8
tags: |
tomerfi/switcher_webapi:latest
tomerfi/switcher_webapi:${{ steps.bumper.outputs.new_version }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
with:
context: .
push: true
platforms: linux/amd64,linux/arm/v7
platforms: linux/amd64,linux/arm/v7,linux/arm64/v8
tags: ghcr.io/tomerfi/switcher_webapi:early-access
build-args: |
VCS_REF=${{ github.sha }}
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ CURRENT_DATE = $(strip $(shell date -u +"%Y-%m-%dT%H:%M:%SZ"))
CODE_VERSION = $(strip $(shell cat VERSION))
FULL_IMAGE_NAME = $(strip $(IMAGE_NAME):$(CODE_VERSION))

PLATFORMS = linux/amd64,linux/arm/v7
PLATFORMS = linux/amd64,linux/arm/v7,linux/arm64/v8

ifndef CODE_VERSION
$(error You need to create a VERSION file to build the image.)
Expand Down

0 comments on commit af608ba

Please sign in to comment.