Skip to content

Commit

Permalink
use amd64 only
Browse files Browse the repository at this point in the history
  • Loading branch information
mattocci27 committed Nov 16, 2024
1 parent ebdb33b commit d9148db
Show file tree
Hide file tree
Showing 3 changed files with 82 additions and 11 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,7 @@ jobs:
- name: Build and push Docker images
run: |
docker buildx bake -f bakefiles/bakefile.json --push radian
docker buildx bake -f bakefiles/bakefile.json --push radian-verse
docker buildx bake -f bakefiles/bakefile.json --push radian-verse-zsh
docker buildx bake -f bakefiles/bakefile.json --push cmdstan-verse
docker buildx bake -f bakefiles/bakefile.json --push cmdstan-verse-zsh
74 changes: 65 additions & 9 deletions bakefiles/bakefile.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,51 +2,107 @@
"target": {
"default": {
"depends": [
"radian", "radian-verse", "cmdstan-verse", "radian-verse-zsh", "cmdstan-verse-zsh" ]
"radian",
"radian-arm64"
, "radian-verse",
"radian-verse-arm64"
, "cmdstan-verse",
"cmdstan-verse-arm64"
, "radian-verse-zsh",
"radian-verse-zsh-arm64"
, "cmdstan-verse-zsh",
"cmdstan-verse-zsh-arm64"
]
},

"radian": {
"context": ".",
"dockerfile": "images/radian_4.4.2/Dockerfile",
"tags": ["mattocci/radian:4.4.2"],
"platforms": ["linux/amd64", "linux/arm64"],
"platforms": ["linux/amd64"],
"cache-from": ["docker.io/mattocci/radian:4.4.2"],
"cache-to": ["type=inline"],
"output": ["type=registry,push=true"]
},
"radian-arm64": {
"context": ".",
"dockerfile": "images/radian_4.4.2/Dockerfile",
"tags": ["mattocci/radian:4.4.2-arm64"],
"platforms": ["linux/arm64"],
"cache-from": ["docker.io/mattocci/radian:4.4.2-arm64"],
"cache-to": ["type=inline"],
"output": ["type=registry,push=true"]
},
"radian-verse": {
"context": ".",
"dockerfile": "images/radian-verse_4.4.2/Dockerfile",
"tags": ["mattocci/radian-verse:4.4.2"],
"platforms": ["linux/amd64", "linux/arm64"],
"platforms": ["linux/amd64"],
"cache-from": ["docker.io/mattocci/radian-verse:4.4.2"],
"cache-to": ["type=inline"],
"output": ["type=registry,push=true"]
},
"radian-verse-arm64": {
"context": ".",
"dockerfile": "images/radian-verse_4.4.2/Dockerfile",
"tags": ["mattocci/radian-verse:4.4.2-arm64"],
"platforms": ["linux/arm64"],
"cache-from": ["docker.io/mattocci/radian-verse:4.4.2-arm64"],
"cache-to": ["type=inline"],
"output": ["type=registry,push=true"]
},
"cmdstan-verse": {
"context": ".",
"dockerfile": "images/cmdstan-verse_4.4.2/Dockerfile",
"tags": ["mattocci/cmdstan-verse:4.4.2"],
"platforms": ["linux/amd64", "linux/arm64"],
"platforms": ["linux/amd64"],
"cache-from": ["docker.io/mattocci/cmdstan-verse:4.4.2"],
"cache-to": ["type=inline"],
"output": ["type=registry,push=true"]
},
"cmdstan-verse-arm64": {
"context": ".",
"dockerfile": "images/cmdstan-verse_4.4.2/Dockerfile",
"tags": ["mattocci/cmdstan-verse:4.4.2-arm64"],
"platforms": ["linux/arm64"],
"cache-from": ["docker.io/mattocci/cmdstan-verse:4.4.2-arm64"],
"cache-to": ["type=inline"],
"output": ["type=registry,push=true"]
},
"radian-verse-zsh": {
"context": ".",
"dockerfile": "images/radian-verse-zsh_4.4.2/Dockerfile",
"tags": ["mattocci/radian-verse-zsh:4.4.2"],
"platforms": ["linux/amd64", "linux/arm64"],
"platforms": ["linux/amd64"],
"cache-from": ["docker.io/mattocci/radian-verse-zsh:4.4.2"],
"cache-to": ["type=inline"],
"output": ["type=registry,push=true"]
},
"radian-verse-zsh-arm64": {
"context": ".",
"dockerfile": "images/radian-verse-zsh_4.4.2/Dockerfile",
"tags": ["mattocci/radian-verse-zsh:4.4.2-arm64"],
"platforms": ["linux/arm64"],
"cache-from": ["docker.io/mattocci/radian-verse-zsh:4.4.2-arm64"],
"cache-to": ["type=inline"],
"output": ["type=registry,push=true"]
},
"cmdstan-verse-zsh": {
"context": ".",
"dockerfile": "images/cmdstan-verse-zsh_4.4.2/Dockerfile",
"tags": ["mattocci/cmdstan-verse-zsh:4.4.2"],
"platforms": ["linux/amd64", "linux/arm64"],
"platforms": ["linux/amd64"],
"cache-from": ["docker.io/mattocci/cmdstan-verse-zsh:4.4.2"],
"cache-to": ["type=inline"],
"output": ["type=registry,push=true"]
}
}
}
},
"cmdstan-verse-zsh-arm64": {
"context": ".",
"dockerfile": "images/cmdstan-verse-zsh_4.4.2/Dockerfile",
"tags": ["mattocci/cmdstan-verse-zsh:4.4.2-arm64"],
"platforms": ["linux/arm64"],
"cache-from": ["docker.io/mattocci/cmdstan-verse-zsh:4.4.2-arm64"],
"cache-to": ["type=inline"],
"output": ["type=registry,push=true"]
} }
}
15 changes: 13 additions & 2 deletions templates/bakefile_template.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@
"default": {
"depends": [
{% for config in images.configs %}
"{{ config.imageName }}"{% if not loop.last %},{% endif %}
"{{ config.imageName }}",
"{{ config.imageName }}-arm64"
{% if not loop.last %},{% endif %}
{% endfor %}
]
},
{% for config in images.configs %}

"{{ config.imageName }}": {
"context": ".",
"dockerfile": "images/{{ config.imageTag }}/Dockerfile",
Expand All @@ -16,8 +19,16 @@
"cache-from": ["docker.io/{{ images.owner }}/{{ config.imageName }}:{{ config.imageVer }}"],
"cache-to": ["type=inline"],
"output": ["type=registry,push=true"]
},
"{{ config.imageName }}-arm64": {
"context": ".",
"dockerfile": "images/{{ config.imageTag }}/Dockerfile",
"tags": ["{{ images.owner }}/{{ config.imageName }}:{{ config.imageVer }}-arm64"],
"platforms": ["linux/arm64"],
"cache-from": ["docker.io/{{ images.owner }}/{{ config.imageName }}:{{ config.imageVer }}-arm64"],
"cache-to": ["type=inline"],
"output": ["type=registry,push=true"]
}{% if not loop.last %},{% endif %}

{% endfor %}
}
}

0 comments on commit d9148db

Please sign in to comment.