github.com/dnephin/dobi@v0.15.0/examples/tag-images/dobi.yaml (about)

     1  
     2  meta:
     3      project: example-tagging
     4      default: tag-images
     5  
     6  image=app:
     7      image: example/tagged-app
     8      dockerfile: Dockerfile.app
     9      context: .
    10      tags:
    11        - 'latest'
    12        - '{git.short-sha}'
    13        - '{git.sha}'
    14        - '{time.YYYY-MM-DDThh-mm:}'
    15        - '{env.APP_VERSION}'
    16      annotations:
    17          description: "Build the application image"
    18  
    19  image=db:
    20      image: example/tagged-db
    21      dockerfile: Dockerfile.db
    22      context: .
    23      tags:
    24        - 'latest'
    25        - '{git.short-sha}'
    26        - '{git.sha}'
    27        - '{time.YYYY-MM-DDThh-mm:}'
    28        - '{env.DB_VERSION:dev}'
    29      annotations:
    30          description: "Build the database image"
    31  
    32  
    33  alias=tag-images:
    34      tasks: ['app:tag', 'db:tag']
    35      annotations:
    36          description: "Build and tag images"
    37  
    38  alias=clean:
    39      tasks: ['app:rm', 'db:rm']
    40      annotations:
    41          description: "Remove all the images"