Add support for arm64 to Dockerfile (#821)

* Add support for arm64 to Dockerfile
* Change machine type R1
Fixes #820
This commit is contained in:
Karol Wrótniak
2025-01-11 19:24:57 +01:00
committed by GitHub
parent 8e6c257225
commit 536d1cbf95
3 changed files with 87 additions and 34 deletions

View File

@@ -8,8 +8,9 @@ blocks:
commands:
- checkout
- export TAG=$(echo ${SEMAPHORE_GIT_TAG_NAME:-vlatest} |cut -c 2-)
- 'docker build -t "devicefarmer/stf:$TAG" .'
- docker push devicefarmer/stf:$TAG
- docker buildx create --platform=linux/amd64,linux/arm64 --use
- 'docker buildx build --platform=linux/amd64,linux/arm64 -t "devicefarmer/stf:$TAG" .'
- docker push "devicefarmer/stf:$TAG"
secrets:
- name: dockerhub-secrets
prologue:
@@ -18,5 +19,5 @@ blocks:
dependencies: []
agent:
machine:
type: e1-standard-2
os_image: ubuntu2004
type: r1-standard-4
os_image: ubuntu2204