Skip to content
This repository was archived by the owner on Jun 22, 2024. It is now read-only.

Commit beb2e67

Browse files
Changed machine type for the machine building the x86 images. It will make it go faster to not rely on QEMU. Also, fixed cache key to include architecture
1 parent 35488a4 commit beb2e67

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

.circleci/config.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ executors:
1313

1414
jobs:
1515
build-multi-arch:
16-
machine:
17-
image: ubuntu-2004:current
18-
resource_class: arm-medium
1916
parameters:
2017
platforms:
2118
type: string
19+
machine-type:
20+
type: executor
21+
executor: << parameters.machine-type >>
2222
environment:
2323
NAMESPACE: seleniarm
2424
BUILD_DATE: today
@@ -65,7 +65,7 @@ jobs:
6565
$NAMESPACE/node-firefox:$VERSION-$BUILD_DATE \
6666
$NAMESPACE/standalone-firefox:$VERSION-$BUILD_DATE
6767
- save_cache:
68-
key: multi-arch-images-{{ .Branch }}-{{ .Environment.CIRCLE_WORKFLOW_ID }}
68+
key: multi-arch-images-{{ .Branch }}-{{ .Environment.CIRCLE_WORKFLOW_ID }}-<< parameters.platforms >>
6969
paths:
7070
- multi-arch-images.tar
7171

@@ -80,18 +80,13 @@ jobs:
8080
steps:
8181
- restore_cache:
8282
keys:
83-
- multi-arch-images-{{ .Branch }}-{{ .Environment.CIRCLE_WORKFLOW_ID }}
83+
- multi-arch-images-{{ .Branch }}-{{ .Environment.CIRCLE_WORKFLOW_ID }}-<< parameters.platforms >>
8484
- run: uname -a
8585
- run: docker info
8686
- run: |
8787
echo "CIRCLE_WORKFLOW_ID = " $CIRCLE_WORKFLOW_ID
88-
echo "Load built images"
88+
echo "Load built images into Docker"
8989
docker load -i multi-arch-images.tar
90-
# docker pull seleniarm/standalone-chromium:4.1.2-20220227
91-
# docker pull seleniarm/standalone-firefox:4.1.2-20220227
92-
# docker pull seleniarm/node-chromium:4.1.2-20220227
93-
# docker pull seleniarm/node-firefox:4.1.2-20220227
94-
# docker pull seleniarm/hub:4.1.2-20220227
9590
- run: |
9691
git clone https://github.com/seleniumhq-community/docker-seleniarm.git
9792
cd docker-seleniarm
@@ -118,14 +113,17 @@ workflows:
118113
jobs:
119114
- build-multi-arch:
120115
platforms: linux/arm64
116+
machine-type: ubuntu2004arm64
121117
name: build-multi-arch-arm64
122118
- build-multi-arch:
123119
platforms: linux/amd64
120+
machine-type: ubuntu2004amd64
124121
name: build-multi-arch-amd64
125122
- test-multi-arch:
126123
requires: [build-multi-arch-arm64]
127124
machine-type: ubuntu2004arm64
128125
- test-multi-arch:
129126
requires: [build-multi-arch-amd64]
130127
machine-type: ubuntu2004amd64
128+
131129

0 commit comments

Comments
 (0)