File tree Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -207,8 +207,25 @@ workflows:
207
207
cmd : |
208
208
sbt "set codacyAnalysisCli / version := \"dev-snapshot\";
209
209
codacyAnalysisCli/stage"
210
- docker build -t $CIRCLE_PROJECT_REPONAME:dev-snapshot .
210
+ docker buildx build --platform linux/amd64 -t $CIRCLE_PROJECT_REPONAME:dev-snapshot --load .
211
+ docker buildx build --platform linux/arm64 -t $CIRCLE_PROJECT_REPONAME:dev-snapshot --load .
212
+ docker buildx build --platform linux/arm/v6 -t $CIRCLE_PROJECT_REPONAME:dev-snapshot --load .
213
+ docker buildx build --platform linux/arm/v7 -t $CIRCLE_PROJECT_REPONAME:dev-snapshot --load .
211
214
docker save --output docker-image.tar $CIRCLE_PROJECT_REPONAME:dev-snapshot
215
+ steps_before_sbt :
216
+ - run :
217
+ name : Install and set up Docker Buildx
218
+ command : |
219
+ export DOCKER_BUILDX=1
220
+ export BUILDX_VERSION=v0.22.0
221
+ export BUILDX_PLATFORMS="linux/amd64,linux/arm64,linux/arm/v6,linux/arm/v7"
222
+ mkdir -p ~/.docker/cli-plugins
223
+ curl --output ~/.docker/cli-plugins/docker-buildx \
224
+ --silent --show-error --location --fail --retry 3 \
225
+ "https://github.com/docker/buildx/releases/download/${BUILDX_VERSION}/buildx-${BUILDX_VERSION}.linux-amd64"
226
+ chmod +x ~/.docker/cli-plugins/docker-buildx
227
+ docker buildx install
228
+ docker run --rm --privileged tonistiigi/binfmt:latest --install "$BUILDX_PLATFORMS"
212
229
cache_prefix : *cache_prefix
213
230
persist_to_workspace : true
214
231
requires :
Original file line number Diff line number Diff line change @@ -92,3 +92,7 @@ project/project/
92
92
.vscode /
93
93
94
94
.codacy
95
+
96
+
97
+ # Ignore cursor AI rules
98
+ .cursor /rules /codacy.mdc
You can’t perform that action at this time.
0 commit comments