fix(build): update Dockerfile path and platform in build task
This commit is contained in:
2 files changed
+4
-3
No files matched your search
@@ -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
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user