Skip to content

Commit 1abda59

Browse files
committed
Merge branch 'experimental' into test_jupyterlab2
2 parents 9516673 + 259750b commit 1abda59

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

.github/workflows/docker-image.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Docker Image Build & Run
22

33
on:
44
push:
5-
branches: [ master, dev*, test* ]
5+
branches: [ master, dev*, experimental, test* ]
66
pull_request:
7-
branches: [ master, dev*, test* ]
7+
branches: [ master, dev*, experimental, test* ]
88

99
jobs:
1010

build.sh

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11
#!/bin/bash
22

3-
version=$(<VERSION) # Read version of Dockerfile from file VERSION
4-
docker build "$@" -t "openworm/openworm:$version" .
3+
version=$(<VERSION)
4+
5+
# Set the platform flag if we're on ARM
6+
arch=$(uname -m)
7+
if [[ "$arch" == "arm64" || "$arch" == "aarch64" ]]; then
8+
platform_flag="--platform linux/amd64"
9+
else
10+
platform_flag=""
11+
fi
12+
13+
# Build the Docker image
14+
docker build $platform_flag "$@" -t "openworm/openworm:$version" .

0 commit comments

Comments
 (0)