fix(build): update Dockerfile path and platform in build task

This commit is contained in:
Janik von Rotz committed 2025-08-06 15:43:56 +02:00
1 parent 848517af7e
commit 990e00bf3f
2 files changed
+4 -3

No files matched your search

+1 -1
View File
@@ -30,4 +30,4 @@ jobs:
- name: Login docker
run: ./task container-login ${{ secrets.CONTAINER_REGISTRY_USERNAME }} ${{ secrets.CONTAINER_REGISTRY_PASSWORD }}
- name: Build
run: ./task build --push
run: ./task build images/odoo/Dockerfile --push
+3 -2
View File
@@ -631,10 +631,11 @@ function container-ps() {
function build() {
# Set container tag and platform based on Dockerfile
MANIFEST_FILE="images/odoo/Dockerfile"
PLATFORM="linux/amd64"
# Default is odoo
if [ -n "$1" ]; then
MANIFEST_FILE="$1"
fi
PLATFORM="linux/amd64"
if [ "$MANIFEST_FILE" = "images/odoo/Dockerfile" ]; then
PLATFORM="linux/amd64,linux/arm64"
fi
if [ "$MANIFEST_FILE" = "images/odoo-mailgate/Dockerfile" ]; then