Spaces:
Running
Running
MilesCranmer
commited on
Commit
•
371f013
1
Parent(s):
2deb5fc
Split up docker deployment
Browse files
.github/workflows/docker_deploy.yml
CHANGED
@@ -16,7 +16,13 @@ on:
|
|
16 |
|
17 |
jobs:
|
18 |
docker:
|
19 |
-
runs-on:
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
steps:
|
21 |
- name: Checkout
|
22 |
uses: actions/checkout@v3
|
@@ -50,9 +56,12 @@ jobs:
|
|
50 |
uses: docker/build-push-action@v3
|
51 |
with:
|
52 |
context: .
|
53 |
-
platforms:
|
54 |
push: ${{ github.event_name != 'pull_request' }}
|
55 |
tags: ${{ steps.meta.outputs.tags }}
|
56 |
labels: ${{ steps.meta.outputs.labels }}
|
57 |
cache-from: type=registry,ref=mcranmer/pysr:buildcache
|
58 |
cache-to: type=registry,ref=mcranmer/pysr:buildcache,mode=max
|
|
|
|
|
|
|
|
16 |
|
17 |
jobs:
|
18 |
docker:
|
19 |
+
runs-on: ${{ matrix.os }}
|
20 |
+
strategy:
|
21 |
+
matrix:
|
22 |
+
os: [ubuntu-latest]
|
23 |
+
arch: [linux/amd64, linux/arm64]
|
24 |
+
python-version: [3.10.8]
|
25 |
+
julia-version: [1.8.2]
|
26 |
steps:
|
27 |
- name: Checkout
|
28 |
uses: actions/checkout@v3
|
|
|
56 |
uses: docker/build-push-action@v3
|
57 |
with:
|
58 |
context: .
|
59 |
+
platforms: ${{ matrix.arch }}
|
60 |
push: ${{ github.event_name != 'pull_request' }}
|
61 |
tags: ${{ steps.meta.outputs.tags }}
|
62 |
labels: ${{ steps.meta.outputs.labels }}
|
63 |
cache-from: type=registry,ref=mcranmer/pysr:buildcache
|
64 |
cache-to: type=registry,ref=mcranmer/pysr:buildcache,mode=max
|
65 |
+
build-args: |
|
66 |
+
PYVERSION=${{ matrix.python-version }}
|
67 |
+
JLVERSION=${{ matrix.julia-version }}
|