Skip to content
Snippets Groups Projects
post_push 225 B
Newer Older
  • Learn to ignore specific revisions
  • remi-filament's avatar
    remi-filament committed
    #!/bin/bash
    set -ex
    
    
    remi-filament's avatar
    remi-filament committed
    # Get Odoo version
    version="$DOCKER_TAG"
    if [ "$version" == latest ]; then
    
    remi-filament's avatar
    remi-filament committed
        version=14.0
    
    remi-filament's avatar
    remi-filament committed
    fi
    
    if [ -z "$IMAGE_NAME" ]; then
        IMAGE_NAME="$DOCKER_REPO:$DOCKER_TAG"
    fi
    
    docker image push "$IMAGE_NAME"